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

    What's the best way to have one Modx with 1 database, and 5 different domain names.
    There are 5 different url's pointing to another resource folder on that site.

    Thanks!
      • 13428 ☆ A M B ☆
      • 1,031 Posts
      Use multiple contexts and xRouting for this.

      Quick Example for a possible config: http://chsmedien.com/blog/2014/01/new-context-routing-plugin-for-modx

      You need to set the http_host different in all contexts and the base_url to '/' everywhere.
        • 44922
        • 131 Posts
        Jako, Do you know if xRouting works ok with the Babel plugin using different contexts for each language? And does this affect the usual .htaccess changes needed for Babel?
        Thanks
          • 13428 ☆ A M B ☆
          • 1,031 Posts
          Babel and xRouting is enough to have no .htaccess entries necessary. I have several installations serving multiple domains with different Babel languages. Absolutely possible. The only issue is a missing login for all domains at the moment. But that's solvable.
            • 44922
            • 131 Posts
            Excellent, thanks. We'll give it a try.