Title: Plugin does not work
Last modified: July 19, 2018

---

# Plugin does not work

 *  Resolved [hizaky](https://wordpress.org/support/users/hizaky/)
 * (@hizaky)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/plugin-does-not-work-122/)
 * I just installed the plugin and it doesn’t work as expected, I have my domain
   for example [http://www.site.com](http://www.site.com)
    and when trying to add
   the other domain for example: [http://www.site2.com](http://www.site2.com).
 * entering [http://www.site2.com](http://www.site2.com) redirects me to the original
   url in this case: [http://www.site.com](http://www.site.com)
 * add the 2 url like: site2.com, I don’t want a change of language and I don’t 
   know what I did wrong.
    -  This topic was modified 7 years, 10 months ago by [hizaky](https://wordpress.org/support/users/hizaky/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fplugin-does-not-work-122%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 11 replies - 1 through 11 (of 11 total)

 *  [nicjp](https://wordpress.org/support/users/nicjp/)
 * (@nicjp)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/plugin-does-not-work-122/#post-10531731)
 * 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 Contributor [Gustavo Straube](https://wordpress.org/support/users/gustavostraube/)
 * (@gustavostraube)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/plugin-does-not-work-122/#post-10540295)
 * 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.
 *  [QuietNoise](https://wordpress.org/support/users/quietnoise/)
 * (@quietnoise)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/plugin-does-not-work-122/#post-10550452)
 * Hi folks,
    You might be affected by this bug reported few months back: [https://wordpress.org/support/topic/replace-filter_input-in-plugin-construct/](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 7 years, 10 months ago by [QuietNoise](https://wordpress.org/support/users/quietnoise/).
 *  [wlatif](https://wordpress.org/support/users/wlatif/)
 * (@wlatif)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/plugin-does-not-work-122/#post-10682922)
 * 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 Contributor [Gustavo Straube](https://wordpress.org/support/users/gustavostraube/)
 * (@gustavostraube)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/plugin-does-not-work-122/#post-10682926)
 * Hi,
 * The fix suggested by [QuietNoise](https://wordpress.org/support/topic/plugin-does-not-work-122/#post-10550452)
   was added to the latest version — pushed last week. Are you running 0.8.0?
 *  [wlatif](https://wordpress.org/support/users/wlatif/)
 * (@wlatif)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/plugin-does-not-work-122/#post-10682935)
 * 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 Contributor [Gustavo Straube](https://wordpress.org/support/users/gustavostraube/)
 * (@gustavostraube)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/plugin-does-not-work-122/#post-10682941)
 * 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](https://wordpress.org/support/users/wlatif/)
 * (@wlatif)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/plugin-does-not-work-122/#post-10685792)
 * Many thanks Gustavo for your help on this, I’ll be waiting for your feedback!
 * Have a great day!
 *  [unodewaal](https://wordpress.org/support/users/unodewaal/)
 * (@unodewaal)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/plugin-does-not-work-122/#post-10945654)
 * 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 Contributor [Gustavo Straube](https://wordpress.org/support/users/gustavostraube/)
 * (@gustavostraube)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/plugin-does-not-work-122/#post-10946444)
 * Hey [@unodewaal](https://wordpress.org/support/users/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 Contributor [Gustavo Straube](https://wordpress.org/support/users/gustavostraube/)
 * (@gustavostraube)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/plugin-does-not-work-122/#post-10990958)
 * 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](https://github.com/straube/multiple-domain).

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘Plugin does not work’ is closed to new replies.

 * ![](https://ps.w.org/multiple-domain/assets/icon-256x256.png?rev=2502840)
 * [Multiple Domain](https://wordpress.org/plugins/multiple-domain/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/multiple-domain/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/multiple-domain/)
 * [Active Topics](https://wordpress.org/support/plugin/multiple-domain/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/multiple-domain/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/multiple-domain/reviews/)

## Tags

 * [solution](https://wordpress.org/support/topic-tag/solution/)

 * 11 replies
 * 6 participants
 * Last reply from: [Gustavo Straube](https://wordpress.org/support/users/gustavostraube/)
 * Last activity: [7 years, 5 months ago](https://wordpress.org/support/topic/plugin-does-not-work-122/#post-10990958)
 * Status: resolved