• Resolved jrochelle

    (@jrochelle)


    Inside this page .. plugins/multiple-domain/multiple-domain.php there is a line like this

    echo ‘<link rel=”alternate” hreflang=”x-default” href=”‘.$this->originalDomain.$_SERVER[‘REQUEST_URI’].'”/>’

    That returns a value like this

    https://www.digitalchalk.com/www.digitalchalk.com/

    I fixed it by editing the line to be this

    echo ‘<link rel=”alternate” hreflang=”x-default” href=”‘.$this->$_SERVER[‘REQUEST_URI’].'”/>

    Not sure if this is the correct way to handle this, any idea? Could something else be the main problem? Anyone else have this problem?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter jrochelle

    (@jrochelle)

    Don’t think this is the right solution … as it does show a PHP error now that there is an Undefined property on that line now. Could someone please help with this? Thanks

    Hello.. It sounds to me that you are using a old version of this plugin as i can not find the line you are pointing to.

    You can find the new version here: https://github.com/straube/multiple-domain
    BUT be aware that it does not work properly with SSL / https

    And you will need to find this line:
    $protocol = !isset($_SERVER[‘HTTPS’]) || ‘off’ == $_SERVER[‘HTTPS’] ? ‘http’ : ‘https’;

    and replace it with this:
    $protocol = !isset($_SERVER[‘HTTPS’]) || ‘off’ == $_SERVER[‘HTTPS’] ? ‘https://&#8217; : ‘https://&#8217;;

    I have a fix if you need the full working code for also SSL/https. But i guess the developer will come up with a fix soon.

    Plugin Contributor Gustavo Straube

    (@gustavostraube)

    Hello! These issues are now fixed on both GitHub repo and here on WP.org. You can update your plugin installation to 0.7 to get the latest updates.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Double Domain’ is closed to new replies.