WordPress SSL Mixed Content Issues

This is article, we shall see how to fix WordPress SSL mixed content issues.

Often it gets to discover that SSL is mounting on a WordPress site but the green padlock icon is not available on the web browser. This problem may cause by the mixed content found in your website code.

A common issue with mixed content is that the website data (HTML, CSS, and scripts) are load on both HTTP and HTTPS connections. This opens up a security loophole that also affects the user experience of the website.

Mixed content means there are some urls with http present in your site code. You can check this on a third-party site:

Or, you can simply view the page source in your browser by right click on the page, click on ‘view page source’. Search for ‘http://’ you will see URLs present in the site code.

This can be resolved by adding the forceful redirection code provided below on the top of the .htaccess file of your domain.

RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteCond %{HTTP_HOST} ^(www\.)?example\.com
RewriteRule ^(.*)$$1 [R,L]

In this article, we have seen how to fix WordPress SSL mixed content issues.

[Need assistance to fix this error or install tools? We’ll help you.]

Related Articles