Knowledgebase
SCRIPT: SSL Mixed Content Issues on WordPress
Posted by on 03 August 2018 05:00 PM

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

To edit the .htaccess file, you may want to refer this guide: HERE

(0 vote(s))
Helpful
Not helpful

Comments (0)
Copyright © 1998 - 2021 Shinjiru International Inc. All Rights Reserved.