After installing the SSL certificate on your website to improve your security, you may notice that some images are not displayed. Do not panic. Read on to correct this.

When you install the SSL certificate, your website address will adjust slightly and even a slight change can cause great damage to your website. Your website will likely have a URL conflict especially since it was programmed to use images in an unsecured "http" protocol. 

Do you have to use SSL for your WooCommerce store ? Discover it by consulting this link

Now everything should be used over the "https" protocol, which is not always the case.

This means that you need to change all the images and replace the links from the “http” images to “https”. Fortunately, you do not need to identify and singularly modify all the images you have already sent.

You can cause the migration to your database, which is a much simpler solution.

Learn as well How to use SSL and HTTPS with WordPress

If you created a blog with a secure URL (so with a certificate installed by default), and the images still not showing, you can read the following to correct the problem.

But before, if you have never installed WordPress discover How to install a WordPress blog in 7 steps et How to search, install and activate a WordPress theme on your blog 

Then back to why we are here.

How to manually search and make changes

It is possible to change the links of your images manually on your database, however, be warned: It is easy to make a mistake on your database and completely break your blog.

Discover How to fix mixed content error on WordPress

However, I will show you how to make the change. However, you must be aware of the different dangers that exist with this operation.

I recommend you to use reliable plugins, as it is unlikely that there are errors. However, there are some security measures you should take before making this type of modification to your blog.

The best solution is to make a full backup of your blog (especially from the database). Here is a collection of Some plugins that you can use to make backups of your blog.

The next step will be to access your phpMyAdmin to make the various modifications (From your cPanel). Go to the SQL query tab and enter the following command.

Make sure you understand the query before you run it.

UPDATED wp_posts SET `post_content` = REPLACE (`post_content`, 'src = "http://www.votresite.com', 'src = "https://www.votresite.com');

Make sure to change the address "http://www.yoursite.com" to the current address of your blog, and you can change the "wp" located in the table name to the current prefix of your installation WordPress. If you are using a multisite network, you must use the following code.

Find your SSL Certificate Provider by viewing this Comparing 5 SSL certificate providers

UPDATED wp_2_posts SET `post_content` = REPLACE (`post_content`, 'src = "http://www.votresite.com', 'src = "https://www.your-site.com');

Here you will replace the value "2" in the table name "wp_2_posts" with the correct identifier of your website (the subsite in question). You must run this code for each of the websites in your network.

Make your website flow by discovering How to optimize a database with one click on WordPress

This may not always be necessary, but if your network is configured in such a way to use subfolders without using several different domains, you will probably need to edit the image links as well.

You will also need to run the following query to update the GUID of your images.

UPDATED wp_posts SET `Guid` = REPLACE (`Guid`, 'http://www.votresite.com', 'https://www.votresite.com') WHERE post_type = 'attachment';

Similar to the first example, you must replace the domain name with your current domain name and modify the prefixes of the tables (you must have a minimum knowledge of SQL, so as not to cause a fatal error. You will also need to run the following query on your multisite network

UPDATE wp_2_posts SET `guid` = REPLACE (` guid`, 'http://www.your-site.com', 'https://www.your-site.com') WHERE post_type = 'attachment';

Remember to change the identifier "2" to that of the sub-site where you want to perform maintenance.

Your images should normally work fine to match your website's new protocol. If that still doesn't work, you'll probably need to try a few times (maybe you missed something in the process).

Also running one query at a time can reduce the risk of errors.

Find & Replace image links with plugins

Using a plugin to search to replace text on your website is much easier than doing things manually. It's also a less risky solution.

I will suggest to you in the following WordPress plugins that will allow you to search and replace your database. While most don't work on the multisite network, you'll be able to install it on each website individually and perform those find-and-replace operations.

1. Better Search Instead

Better Search Replace is one of the plugins on this list which is multisite network compatible. It offers a fairly simple design without too many options to configure, but at the same time it offers the most used options.

Better-Search-Replace

All you need is a working WordPress installation, and you will be able to use the plugin. The best feature of this plugin is the one that gives you the ability to see which tables will be affected by your changes, which will further reduce errors.

Download Demo | Web hosting

2.Search and Replace

The Search and Replace plugin is an equally handy plugin that does much more than replace image links on your website. You can use it to replace your domain name, perform backups, restore a database and change the table prefix.search-and-replace-plugin

This plugin also offers the possibility of carrying out a test of your various modifications before applying them. This in order to avoid mistakes.

There is however a prerequisite, your version of PHP must be 5.4 or higher. Search and Replace installs like most WordPress plugins.

Download Demo | Web hosting

3. WP Migrate DB

WP Migrate DB is typically used by websites that want to migrate, but you can also use it to search and replace links. wp-db-migrate-plugin

It is also a great plugin for leaving a locally developed website for a live website. It's an easy-to-install plugin that doesn't have any special needs to run.

While many people wouldn't think of the latter first to make replacements, it's a plugin that works just as well in this case.

Download Demo | Web hosting

Images can cause you a lot of worry when you switch to an SSL secure domain. You can use your "site URL" (the URL of your website) to make changes to the images.

But this change will only count for future images and therefore is not retroactive. The only solution to correct this is to perform replacements on your database.

Discover also some premium WordPress plugins  

You can use other WordPress plugins to give a modern appearance and to optimize the handling of your blog or website.

We offer you here some premium WordPress plugins that will help you do that.

1. LatePoint

Are you tired of complicated booking plugins, whose setup takes forever and sometimes even once you do - these slow down your entire website and make you lose potential customers?LatePoint Appointment Booking Reservation plugin for WordPress

Le WordPress Plugin premium LatePoint therefore comes to the rescue by helping you integrate a simple and intuitive appointment management system into your website, which speaks to your customers and incredibly simplifies scheduling an appointment in just a few clicks.  It installs in less than 5 minutes and offers connection options via social networks.

While simple on the outside, it's incredibly powerful on the inside. Its clean and modern control panel is designed in such a way that any business owner can easily view agent performance reports and manage services and clients without much hassle.

DownloadDemo | Web hosting

2. Xmas Advent Calendar

With WordPress Plugin premium Xmas Advent Calendar, you can create a colorful calendar that features a countdown to Christmas and gives a gift to your visitors every day from December 1st to December 25th. Xmas Advent Calendar WordPress Plugin

It's a great way to get your visitors interested and grow your business. Its main features are: a fully customizable layout thanks to very powerful options, a pretty good looking look on different devices, three content templates via popups, and a lot more.

DownloadDemo | Web hosting

3. Fetcher Image

Image Fetcher is a WordPress Plugin fairly simple premium that automatically searches and converts the first images of a published article into featured images, quickly and easily.image fetcher

Its main features are: the possibility ofautomatically define the first images of articles published as images in the first, abackup system (for backing up and restoring important tables),publication statistics, theonversion of statistics, an iuser friendly interface, aprofessional documentation and assistance

DownloadDemo | Web hosting

Recommended Resources

Find out about other recommended resources to help you build and manage your website.

Conclusion

Here ! That's it for this tutorial. I hope you can replace the image links after installing SSL on WordPress. Do not hesitate to share with your friends on your favorite social networks

However, you will also be able to consult our resources, if you need more elements to carry out your projects of creation of Internet sites, by consulting our guide on the WordPress blog creation.

If you have suggestions or remarks, leave them in our section Comments.

...