WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. rockyjvec
    Member
    Posted 1 year 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";
    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/

  2. Simon Fransson
    Member
    Plugin Author

    Posted 1 year 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
    Member
    Posted 1 year ago #

    Thanks, I look forward to the new version.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags