Title: [Plugin: Any Hostname] [bug] Breaks when using https on a different domain
Last modified: August 20, 2016

---

# [Plugin: Any Hostname] [bug] Breaks when using https on a different domain

 *  Resolved [rockyjvec](https://wordpress.org/support/users/rockyjvec/)
 * (@rockyjvec)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-any-hostname-bug-breaks-when-using-https-on-a-different-domain/)
 * First of all, great plugin!
 * I installed this plugin to make a site work when it has a different sub-domain
   when viewing the site over ssl. It almost worked but there were some problems
   because some links used http instead of https.
 * I was able to fix this problem by adding:
    `$parts['scheme'] = ($_SERVER['HTTPS']
   == "on")?"https":"http";` after: `$parts = parse_url($url);` In the “filter_url”
   function.
 * Hope that helps and thanks for the great plugin!
 * [http://wordpress.org/extend/plugins/any-hostname/](http://wordpress.org/extend/plugins/any-hostname/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Simon Fransson](https://wordpress.org/support/users/chokladzingo/)
 * (@chokladzingo)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/plugin-any-hostname-bug-breaks-when-using-https-on-a-different-domain/#post-3095270)
 * Thanks, I’m glad to hear you like it! I rarely use https myself so I haven’t 
   had to deal with that other than debugging the plugin on a IIS server which handled
   HTTPS and/or url scheme a bit differently. I’ve added you code with a slight 
   rephrasing, it’ll be included in 1.0.3 which I’ll release shortly.
 * Also, feel free do a pull request on my github repo in case you have any other
   improvements. You can find it at [https://github.com/dessibelle/any-hostname](https://github.com/dessibelle/any-hostname).
 *  Thread Starter [rockyjvec](https://wordpress.org/support/users/rockyjvec/)
 * (@rockyjvec)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/plugin-any-hostname-bug-breaks-when-using-https-on-a-different-domain/#post-3095271)
 * Thanks, I look forward to the new version.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘[Plugin: Any Hostname] [bug] Breaks when using https on a different domain’
is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/any-hostname.svg)
 * [Any Hostname](https://wordpress.org/plugins/any-hostname/)
 * [Support Threads](https://wordpress.org/support/plugin/any-hostname/)
 * [Active Topics](https://wordpress.org/support/plugin/any-hostname/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/any-hostname/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/any-hostname/reviews/)

## Tags

 * [HTTPS](https://wordpress.org/support/topic-tag/https/)
 * [SSL](https://wordpress.org/support/topic-tag/ssl/)

 * 2 replies
 * 2 participants
 * Last reply from: [rockyjvec](https://wordpress.org/support/users/rockyjvec/)
 * Last activity: [13 years, 4 months ago](https://wordpress.org/support/topic/plugin-any-hostname-bug-breaks-when-using-https-on-a-different-domain/#post-3095271)
 * Status: resolved