Any Hostname
[resolved] [bug] Breaks when using https on a different domain (3 posts)

  1. rockyjvec
    Posted 3 years ago #

    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";
    $parts = parse_url($url);
    In the "filter_url" function.

    Hope that helps and thanks for the great plugin!


  2. Simon Fransson
    Plugin Author

    Posted 3 years ago #

    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.

  3. rockyjvec
    Posted 3 years ago #

    Thanks, I look forward to the new version.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Any Hostname
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic