We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 14214
    • 299 Posts
    I am running two websites from a single install of Revo. Currently for both sites I have the site URL and http host as the non-www URL.

    Visitors to www. are getting a 404 error.

    How can I run all four domains (two domains in both www and non-www) correctly?
      • 3749
      • 24,544 Posts
      It generally a good idea to pick one or the other and stick with it. There is commented-out code in .htaccess to automatically move any visitors to the preferred option. That means that the site can be reached with either URL, but once the user is inside, they'll stay in the one you picked in .htaccess.

      If you don't do that, you'll lose all the $_SESSION data if a user switches from a www page to a non-www page.
        Did I help you? Buy me a beer
        Get my Book: MODX:The Official Guide
        MODX info for everyone: http://bobsguides.com/modx.html
        My MODX Extras
        Bob's Guides is now hosted at A2 MODX Hosting