Remove HTTP: Fix Mixed Content Warning


Remove HTTP is a plugin that automatically scans and removes both http: and https: 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='' type='text/css' />
<script type='text/javascript' src=''></script>
<a href="" title="Example">Example</a>
<img src="" width="150" height="50" />


<link rel='stylesheet' href='//' type='text/css' />
<script type='text/javascript' src='//'></script>
<a href="//" title="Example">Example</a>
<img src="//" width="150" height="50" />

Switch to Relative URLs

There is an option (under the General settings) to change internal links to relative URLs.

Contribute on GitHub

Want to help improve this plugin? Head over to our GitHub page.


  1. Upload the plugin to the /wp-content/plugins/ directory.
  2. Activate the plugin through the Plugins menu in WordPress.
  3. Let it settle in for a minute and be amazed.


Installation Instructions
  1. Upload the plugin to the /wp-content/plugins/ directory.
  2. Activate the plugin through the Plugins menu in WordPress.
  3. Let it settle in for a minute and be amazed.
What is mixed content?

According to Google:

Mixed content occurs when initial HTML is loaded over a secure HTTPS connection, but other resources (such as images, videos, stylesheets, scripts) are loaded over an insecure HTTP connection. This is called mixed content because both HTTP and HTTPS content are being loaded to display the same page, and the initial request was secure over HTTPS. Modern browsers display warnings about this type of content to indicate to the user that this page contains insecure resources.

In short, mixed content degrades the security and user experience of your HTTPS site.


No support whitelist

Without whitelist for some special addresses plugin break Jetpack and, so it’s impossible to use this to external links.

If it works with excluded "@context": "", I will change the rating to 5.

Simply activate and go

I originally used another plugin for the same results, but their latest update ended up breaking my site. I discovered this plugin and everything works as intended.

It also adds an option in the general settings to choose the url format.

Lees alle 17 beoordelingen

Bijdragers & ontwikkelaars

“Remove HTTP: Fix Mixed Content Warning” is open source software. De volgende personen hebben bijgedragen aan deze plugin.





  • Added support for relative domain paths



  • Restored option to ignore external links



  • Feature: Switch between protocol-relative or relative URLs
  • Ignore <link> tags with rel="canonical" because they must be absolute URLs
  • Fix: Links in “style” tags weren’t affected



  • Minor code improvements



  • Feature: Option to remove protocols from internal links only (see General > Protocol Relative URL)
  • Added uninstall to delete custom plugin options
  • Improved regex to find all protocols
  • Simplified and removed redundant code



  • Function will run once WordPress, all plugins, and the theme are fully loaded
  • Reverted back to original regex from v1.0.0
  • Upgrade notice shown when update is available
  • Fix: Conflict with Visual Composer plugin
  • Fix: YouTube videos in Revolution Slider plugin stopped playing



  • Improved regex to find all protocols
  • Comments added for code explanation



  • Initial release, huzzah!