At times it is noticed that SSL is installed on a wordpress site but on the web browser the green padlock icon is not visible. This issue is caused due to the mixed contents present in your site code.

Mixed content means there are some URL’s with http present in your site code . You can check this on a third-party site: https://www.whynopadlock.com/

Enter the URL of your site with https and it will show you all the results of URL’s with http in your site code.

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\.)?coolexample\.com
RewriteRule ^(.*)$ https://www.coolexample.com/$1 [R,L]
“`

Leave a Reply

Your email address will not be published. Required fields are marked *