Title: Https Switcher
Author: janiko
Published: <strong>Maig 27, 2015</strong>
Last modified: Octubre 2, 2016

---

Search plugins

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://s.w.org/plugins/geopattern-icon/https-switcher.svg)

# Https Switcher

 By [janiko](https://profiles.wordpress.org/janiko/)

[Download](https://downloads.wordpress.org/plugin/https-switcher.zip)

 * [Details](https://bal.wordpress.org/plugins/https-switcher/#description)
 * [Reviews](https://bal.wordpress.org/plugins/https-switcher/#reviews)
 *  [Installation](https://bal.wordpress.org/plugins/https-switcher/#installation)
 * [Development](https://bal.wordpress.org/plugins/https-switcher/#developers)

 [Support](https://wordpress.org/support/plugin/https-switcher/)

## Description

This very simple plugin aims at avoiding mixed content when using https for wordpress
sites.

#### Principle

When you are using HTTPS for browsing, all content resources will point to https.
All ‘http’ references will be changed to ‘https’.

On the contrary, if you want HTTP browsing, all references will be changed to ‘http’,
which can be useful if you are behind a proxy that filters https.

## Installation

Installation complexity is minimal :

 1. Upload `https-switch.php` to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress

That’s all, folks.

## Reviews

![](https://secure.gravatar.com/avatar/0894ec0d7e5d70306a16431b36249b1928cad88a572de9b5211a54d75ad5d77a?
s=60&d=retro&r=g)

### 󠀁[Simple and yet powerful!](https://wordpress.org/support/topic/simple-and-powerful-26/)󠁿

 [Niels Lange](https://profiles.wordpress.org/nielslange/) Octubre 4, 2016 1 reply

Thanks @janiko for creating this great plugin! It works fantastic on my sites and
even your source code looks amazing. Well done!

![](https://secure.gravatar.com/avatar/dcb5982ba504a7d271fc285d9fa043c29532a81903091d480e605ae06c23b950?
s=60&d=retro&r=g)

### 󠀁[Https Switcher conflicted with Yoast’s sitemap generator](https://wordpress.org/support/topic/https-switcher-conflicted-with-yoasts-sitemap-generator/)󠁿

 [drbill02](https://profiles.wordpress.org/drbill02/) Setembre 27, 2016 2 replies

Works fine but it conflicted with the XML sitemap generation of Yoast SEO. Yoast’s
XML was generating an extra blank line which caused an error in the browser, and
it turns out that this plugin was the cause. In order to fix this, I edited the 
https-switcher/https-switcher.php file of this plugin and removed the last 2 blank
lines after the closing php tag (?>). Please update your code by removing the blank
lines at the end of the file. Thank you.

 [ Read all 3 reviews ](https://wordpress.org/support/plugin/https-switcher/reviews/)

## Contributors & Developers

“Https Switcher” is open source software. The following people have contributed 
to this plugin.

Contributors

 *   [ janiko ](https://profiles.wordpress.org/janiko/)

[Translate “Https Switcher” into your language.](https://translate.wordpress.org/projects/wp-plugins/https-switcher)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/https-switcher/), check
out the [SVN repository](https://plugins.svn.wordpress.org/https-switcher/), or 
subscribe to the [development log](https://plugins.trac.wordpress.org/log/https-switcher/)
by [RSS](https://plugins.trac.wordpress.org/log/https-switcher/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 0.1

 * Initial version.

#### 0.2

 * Some filters added

#### 0.3

 * Remove unwanted spaces

## Meta

 *  Version **0.3**
 *  Last updated **10 anys ago**
 *  Active installations **70+**
 *  WordPress version ** 3.0.1 or higher **
 *  Tested up to **4.6.30**
 *  Language
 * [English (US)](https://wordpress.org/plugins/https-switcher/)
 * Tags
 * [http](https://bal.wordpress.org/plugins/tags/http/)[https](https://bal.wordpress.org/plugins/tags/https/)
   [mixed content](https://bal.wordpress.org/plugins/tags/mixed-content/)
 *  [Advanced View](https://bal.wordpress.org/plugins/https-switcher/advanced/)

## Ratings

 4.7 out of 5 stars.

 *  [  2 5-star reviews     ](https://wordpress.org/support/plugin/https-switcher/reviews/?filter=5)
 *  [  1 4-star review     ](https://wordpress.org/support/plugin/https-switcher/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/https-switcher/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/https-switcher/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/https-switcher/reviews/?filter=1)

[Add my review](https://wordpress.org/support/plugin/https-switcher/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/https-switcher/reviews/)

## Contributors

 *   [ janiko ](https://profiles.wordpress.org/janiko/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/https-switcher/)