Your Gateway To Digital Success
Wesbytes Blue Logo

Wesbytes Knowledge Base

Search our articles or browse by category below

How to Fix SSL Mixed Content Issues on WordPress

Last modified: July 2, 2022
You are here:
Estimated reading time: < 1 min

Fix SSL Mixed Content Issues on WordPress

There are certain URLs with http in your site’s code, which is referred to as mixed content. On a third-party website, you can verify this:

Enter your site’s https URL first, and it will display all the results for URLs with http in your site code.

On the other hand, you may just right-click on the page and view the page source in your browser. Next, select “see page source.” If you look in the site code for “http://,” you will see URLs.

This can be fixed by placing the following aggressive redirection code at the top of your domain’s.htaccess file.

RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteCond %{HTTP_HOST} ^(www\.)?coolexample\.com
RewriteRule ^(.*)$$1 [R,L]
Was this article helpful?
Dislike 0
Views: 4