We'll create fresh WordPress site with Remove HTTP: Fix Mixed Content Warning installed. You have 20 minutes to test the plugin after that site we'll be deleted.
Remove HTTP is a plugin that automatically scans and removes both
http:
andhttps:
protocols from all links. This helps resolve websites that are having “mixed content warnings” which is when the website has assets (images, JavaScript, and CSS) loading both HTTP and HTTPS.
No changes to the links are made in the database. Simply install and activate the plugin and the changes will be immediate. Links that have http://
or https://
will only have //
, making them protocol relative URLs. Below is a before and after example.
<link rel='stylesheet' href='https://example.com/style.css' type='text/css' />
<script type='text/javascript' src='http://example.com/script.js'></script>
<a href="https://example.com" title="Example">Example</a>
<img src="http://example.com/image.jpg" width="150" height="50" />
<link rel='stylesheet' href='//example.com/style.css' type='text/css' />
<script type='text/javascript' src='//example.com/script.js'></script>
<a href="//example.com" title="Example">Example</a>
<img src="//example.com/image.jpg" width="150" height="50" />
There is an option (under the General settings) to change internal links to relative URLs.
Want to help improve this plugin? Head over to our GitHub page.