Fix SSL Mixed Content Issues on WordPress

F

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.

Option #1:

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] “`

Option #2:

If you don’t want to go with the above jargon process, then here is another option for you.

Login to your WordPress Admin > Plugins > Add New > Search for “Really Simple SSL” Install & Activate.

Fix SSL Mixed Content Issues on WordPress

Done! Now check your website after clearing your browser cache.

If you enjoyed this article, then you’ll love Stromonic’s Web Hosting platform. Turbocharge your website and get 24/7 support from our veteran team. Our Google Cloud powered infrastructure focuses on auto-scaling, performance, and security. Let us show you the Stromonic difference! Check out our plans.

About the author

Natan Ray

Natan founded Stromonic in 2017 and it's currently growing internationally from the offices in Dehradun, India. The passion for performance has been growing ever since the web started to get slower. Stromonic is part of the remedy. Natan is a serial entrepreneur, loves startups, and has founded a series of companies in the last 6 years. The Internet has always been his playground.

Add comment

By Natan Ray

Email Newsletter

Subscribe to receive inspiration, news, and ideas in your inbox.

TENDING