• Anyway I installed your plugin as it seems super useful.

    We have 2 domains:
    https://MapGage.com
    which is the main domain using wordpess. All works fine.

    Then we recently got:
    https://GolfGage.com

    we setup DNS A NAME command to point
    GolfGage.com –> 104.198.1.35
    and all works fine as you see. The domain points to wordpress installation.

    Then we installed your Plugin as we want a specific page to appear as the homepage for GolfGage.com:

    USED DOMAIN ORIGINAL URL
    https://www.golfgage.com –> https://www.mapgage.com “/golf-management-using-drones”

    But, this did not solve the issue. GolfGage.com always points to the Homepage of MapGage (just as the A NAME settings tell it to do. But your plugin does not do the internal redirect)

    When this didn’t work we started to try to POINT all domains to the main server directory where wordpress is installed.
    There are tons of resources that all explain some slightly different and tell you to di it slightly different. Very confusing.
    Our wordpress is self-hoster using https://serverpilot.io.
    Serverpilot manages all the server settings to manage wordpress in an automated fashion. It has the option to add additional domains to a wordpress installation. So we added GolfGage.com and https://www.GolfGage.com to it.

    Still, this did not solve the issue. GolfGage.com always points to the Homepage of MapGage (just as the A NAME settings tell it to do. But your plugin does not do the internal redirect)

    We then also updated wp-config.php with the following info:
    /*
    * Handle multi domain into single instance of wordpress installation
    */
    define(‘WP_SITEURL’, ‘https://’ . $_SERVER[‘HTTP_HOST’]);
    define(‘WP_HOME’, ‘https://’ . $_SERVER[‘HTTP_HOST’]);

    Again, this did not solve the issue. GolfGage.com always points to the Homepage of MapGage (just as the A NAME settings tell it to do. But your plugin does not do the internal redirect)

    Our WP is hosted in this UNUSUAL folder:
    /srv/users/serverpilot/apps/wordpress-mapgage/public
    might this cause an issue?

    Finally, we changed the Multiple Domain Mapping Settings to choose the OTHER PHP VARIABLE as suggested in your plugin
    $_SERVER[“HTTP_HOST”]

    But again, this did not solve the issue. GolfGage.com always points to the Homepage of MapGage (just as the A NAME settings tell it to do. But your plugin does not do the internal redirect)

    Any idea what else we can try??

    Thanks in advance
    Rod

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author matthias.wagner

    (@matthiaswagner)

    hy rod,

    it is enough to post in the forum – no additional email required ??

    when i visit https://www.golfgage.com/ i can see the content from https://mapgage.com/golf-management-using-drones/ -> looks fine. please always disable browser cache when playing around with mappings/redirections/…

    matt

    Thread Starter roderich74

    (@roderich74)

    These are the Domain/URL related settings in wp-config.php.
    I understand this can cause some issues as these are different for each installation. Perhaps the error lies in here:

    =======START=========

    $table_prefix = ‘wp_d6974a47xx_’;

    /*
    * Handle multi domain into single instance of wordpress installation
    */
    define(‘WP_SITEURL’, ‘https://’ . $_SERVER[‘HTTP_HOST’]);
    define(‘WP_HOME’, ‘https://’ . $_SERVER[‘HTTP_HOST’]);

    define(‘SP_REQUEST_URL’, ($_SERVER[‘HTTPS’] ? ‘https://’ : ‘https://’) . $_SERVER[‘HTTP_HOST’]);

    /*define(‘WP_SITEURL’, SP_REQUEST_URL);*/
    /*define(‘WP_HOME’, SP_REQUEST_URL);*/

    =======END=========

    Plugin Author matthias.wagner

    (@matthiaswagner)

    i can not see what your problem is, as the mapping seems to work?

    Thread Starter roderich74

    (@roderich74)

    @matthiaswagner

    Hi Matthias,

    are you sure? I cleared my cache on multiple browsers and tested this on multiple devices.

    GolfGage.com always shows the same page as MapGage.com (with aerial construction view in the top image showing the computer and drone and mobile devices). It should show the page with the golf related images and text.

    If you look at the wp-config.php settings I posted before the correct PHP VARIABLE should be $_SERVER[“HTTP_HOST”].
    Correct?

    Perhaps the wp-config is not well defined?

    Thread Starter roderich74

    (@roderich74)

    Hi Matthias

    seems to work now after I placed the following wp-config line as a QUOTE:

    define(‘SP_REQUEST_URL’, ($_SERVER[‘HTTPS’] ? ‘https://’ : ‘https://’) . $_SERVER[‘HTTP_HOST’]);

    to

    /*define(‘SP_REQUEST_URL’, ($_SERVER[‘HTTPS’] ? ‘https://’ : ‘https://’) . $_SERVER[‘HTTP_HOST’]);*/

    It think it overlapped with the 2 lines above it that I added.

    Plugin Author matthias.wagner

    (@matthiaswagner)

    hy rod,

    i do not have time now to have a look at all your code. so you say it is working now?

    Thread Starter roderich74

    (@roderich74)

    Hi Matthias,

    htttp://www.GolfGage.com is WORKING
    htttp://GolfGage.com is NOT WORKING

    now I defined both in the MULTI-DOMAIN SETTINGS:

    htttp://GolfGage.com –> /golf-management-using-drones
    htttp://www.GolfGage.com –> /golf-management-using-drones

    Still only WWW. version seems to work.

    Anything else I need to define or setup?

    Plugin Author matthias.wagner

    (@matthiaswagner)

    try to change the order – non-www version first

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Multi Domain Plugin not working’ is closed to new replies.