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 urls with http present in your site code. You can check this on a third-party site:


Enter the URL of your site with https and it will show you all the results of urls 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 ^(.*)$$1 [R,L]


Was this answer helpful? 0 Users Found This Useful (0 Votes)