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

    i have a staging site(stage.mysite.com) as a copy from my production site. but when i click the links, lets say, the main menu, i get a 404 error page,

    Everything works fine when i access the modx manager, the tree is ok, everyfile in the manager(resources,elements and assets) are ok.

    the only page that is displayed properly is the home page, but when clicking links, i get the 404 error page. urls in the url bar are correct(they point to, for ejemplo, stage.mysite.com/somepage.html).

    thanks in advance

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

    • discuss.answer
      • 3749
      • 24,544 Posts
      Make sure you have this (with the exclamation point) in the head section of all templates:

      <base href="[[!++site_url]]" />
        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
        • 42560
        • 49 Posts
        Quote from: BobRay at Mar 23, 2018, 11:03 PM
        Make sure you have this (with the exclamation point) in the head section of all templates:

        <base href="[[!++site_url]]">

        It works, thank you, sir XD