We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 37099
    • 338 Posts
    I’ve created the page "page-not-found"

    .htaccess is working fine, and in it I have

    RewriteEngine On
    RewriteBase /
    ErrorDocument 404 /page-not-found

    But whenever I type a wrong page it just goes to my root index page.

    Any ideas what I am doing wrong?

    Thanks
    Mike
      • 4310
      • 2,310 Posts
      Normally you don’t have an .htaccess rule but let Modx handle it.
      Inside the Manager go Tools => Configuration => Site => Error page
      Set it to the id of your Modx document to use as the 404 page, add any custom text etc. on that page, make sure it’s published wink
        • 37099
        • 338 Posts
        Thankyou smiley

        That was very straight forward.

        Cheers
        Mike