• Resolved rockyjvec

    (@rockyjvec)


    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!

    https://www.ads-software.com/extend/plugins/any-hostname/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Simon Fransson

    (@chokladzingo)

    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.

    Thread Starter rockyjvec

    (@rockyjvec)

    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.