We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 17301
    • 932 Posts
    Hi all,

    I'm trying to utilise the gateway manager plugin so that I have different domains pointing to different contexts within the CMS.

    I am having a little trouble getting this to work though and I wonder if its more to do with a hosting setup issue. I've tried setting the domains as frame forwarders and also aliases to the primary domain but I've had no luck with either of those options.

    Does the domain have to be setup as a hosted domain and then the document root pointed towards the primary domains CMS folder? Or is it ok to have them setup as forwarders or aliases to the primary domain? The former doesn't look to be possible in cpanel/plesk without SSH I'm guessing?

    Any help with clarification would be greatly appreciated, thanks guys.

    This question has been answered by lkfranklin. See the first response.

      ■ email: [email protected] | ■ website: https://alienbuild.uk

      The greatest compliment you can give back to us, is to spend a few seconds leaving a rating at our trustpilot: https://uk.trustpilot.com/review/alienbuild.uk about the service we provided. We always drop mention of services offered by businesses we've worked with in the past to those of interest.
      • 17301
      • 932 Posts
      I've managed to set the domains document route to be the same as the primary domains document root however it's still loading the 'web' context. I've noticed some people have reported some issues on github for Gateway Manager and have also supplied some edited code - I've tried this still with no luck though.

      Can anyone confirm that this extra is still working ok with the latest version of MODX?

      Thanks,
        ■ email: [email protected] | ■ website: https://alienbuild.uk

        The greatest compliment you can give back to us, is to spend a few seconds leaving a rating at our trustpilot: https://uk.trustpilot.com/review/alienbuild.uk about the service we provided. We always drop mention of services offered by businesses we've worked with in the past to those of interest.
      • discuss.answer
        • 17301
        • 932 Posts
        I gave up and used xrouting extra instead.

          ■ email: [email protected] | ■ website: https://alienbuild.uk

          The greatest compliment you can give back to us, is to spend a few seconds leaving a rating at our trustpilot: https://uk.trustpilot.com/review/alienbuild.uk about the service we provided. We always drop mention of services offered by businesses we've worked with in the past to those of interest.
          • 18373 ☆ A M B ☆
          • 3,141 Posts
          Mark Hamstra Reply #4, 10 years ago
          xrouting is a good plugin to use smiley ContextRouter is also similar, but xrouting also supports different contexts based on subfolders, so it's a bit more flexibe.
            Mark Hamstra • Developer spending his days working on Premium Extras and a MODX Site Dashboard with the ability to remotely upgrade MODX and extras to make the MODX world a little better.

            Tweet me @mark_hamstra, check my infrequent blog at markhamstra.com, my slightly more frequent ramblings at MODX.today or see code at Github.