Support » Plugin: Multiple Domain » Plugin does not work

Viewing 11 replies - 1 through 11 (of 11 total)
  • Hi all;

    I’m experiencing a similar issue to the one described above. Having installed the multidomain plugin, and configured an additional domain (without a base path or a language configured), when visiting the new domain, WordPress issues a 301 Redirect back to the original domain.

    Both domains have A records pointing to the same server, and both domains are configured with the WP site as the server root path.

    Any advice you could provide on debugging would be appreciated. PHP version is PHP5.6 and its using WP 4.9.7.

    Thanks!

    Plugin Author Gustavo Straube

    (@gustavostraube)

    Hi,

    I’ll try to reproduce this issue as soon as I have some free time. Probably later this week. I then let you know what I found.

    Hi folks,
    You might be affected by this bug reported few months back: https://wordpress.org/support/topic/replace-filter_input-in-plugin-construct/

    Temporary solution is to edit __construct function of the plugin class.
    In the plugins folder multiple-domain/multiple-domain.php file find a __construct() function and change

           $headerHost = filter_input(INPUT_SERVER, 'HTTP_X_HOST', FILTER_DEFAULT, [
                'options' => [
                    'default' => filter_input(INPUT_SERVER, 'HTTP_HOST'),
                ],
            ]);
    

    to
    $headerHost = $_SERVER['HTTP_HOST'];

    You might also change
    `
    const VERSION = ‘0.7.1’;
    to something big like ‘666’ so the change you made will not get overwritten when plugin gets updated.

    • This reply was modified 2 years, 1 month ago by QuietNoise.
    wlatif

    (@wlatif)

    Hello Gustavo,

    Thanks for your work on this plugin and for making it open source!

    I am also having the same issue described here, my new domain is being directed to the original wordpress domain, did you get a chance to look into this issue?

    Thanks!

    Plugin Author Gustavo Straube

    (@gustavostraube)

    Hi,

    The fix suggested by QuietNoise was added to the latest version — pushed last week. Are you running 0.8.0?

    wlatif

    (@wlatif)

    Hi,

    I just downloaded it today so I am running the latest release.

    I am also running a multisite, could that be the problem?

    Thanks.

    Plugin Author Gustavo Straube

    (@gustavostraube)

    Maybe. I’ve never tested Multiple Domain on a multisite installation. I’ll try to do that as soon as I have some free time.

    wlatif

    (@wlatif)

    Many thanks Gustavo for your help on this, I’ll be waiting for your feedback!

    Have a great day!

    Hi all – I have the same issue.
    My host is WPengine for this.

    I also have WP Multisite, which I think might be the problem (that, combined with WPEngine).
    Any chance to look at this again

    Plugin Author Gustavo Straube

    (@gustavostraube)

    Hey @unodewaal,

    The plugin doesn’t officially support WP Multisite yet. I haven’t had any free time lately to run these tests and improve the compatibility.

    I appreciate your patience.

    Plugin Author Gustavo Straube

    (@gustavostraube)

    Hey y’all!

    After some research I found out the plugin doesn’t work with Multisite installations and other domain-based plugins, such as WPML.

    Unfortunately, I don’t know how much effort it’ll take to make it work. Or if that’s even possible.

    Since the original issue related to this topic was addressed, I’m marking it as resolved. Feel free to open new topics or add an issue to the Github repository.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Plugin does not work’ is closed to new replies.