HOW TO: Fix SSL Mixed Content Issues on WordPress

Last modified: February 27, 2020
You are here:
Estimated reading time: < 1 min

Fix SSL Mixed Content Issues on WordPress

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]

Was this article helpful?
Dislike 0
Views: 28