tsoHost Help Centre

Table of Contents

Fix mixed content errors in WordPress

Updated May 6th, 2021 at 15:30 BST

After adding an SSL and enabling HTTPS, you may find that some images do not display properly anymore. If you have recently added an SSL, follow one of these sets of directions to fix your issue.

Using a plugin:

Follow these steps to install the Really Simple SSL plugin.

Install the plugin in WordPress.

Activate the plugin in WordPress.

Under Settings select SSL.

Providing your SSL is active, you can click the Go ahead, activate SSL! button.

Review your site to verify that your images display properly.

Note: This WordPress plugin is a third-party plugin, please review the developer's page for issues with it's usage.

Using the .htaccess or web.config file:

Connect to your hosting using FTP.

Open your .htaccess file

Place the following code:

       RewriteEngine On
       RewriteCond %{HTTPS} off
       RewriteRule ^(.*)$ https://exampledomain.com/$1 [R=301,L]

Replace https://exampledomain.com/$1 with your domain name

You have now setup the HTTPS redirect.

Review your site to verify that your images display properly.