I am using Sitecore SXA and handling page not found through by default functionality in SXA by going on below path:

/sitecore/content/{tenant name}/{sitename}/Settings > Error handling tab > and add static page url under "Page Not Found Link" textbox. It is redirecting the page to page not found and working fine but URL is not changed to our custom static page(pagenotfound) in live site.

For example : If we type something wrong in url then it will redirect to page not found page. However url will remain. I would like to change its URL to "page not found" as well when we redirect to "page not found"


enter image description here

  • 2
    What is occurring is preferred functionality. You want the 404 content (for the user) and a 404 status code + original URL (for the search engine). Commented Aug 31, 2020 at 16:29
  • 1
    What is the purpose for changing the Url? This is not a recommended way of serving 404 content.
    – Richard Seal
    Commented Aug 31, 2020 at 16:56
  • @RichardSeal we would like to show only those url which is showing in a site. If we have page not found page then we would like to show url related to "page not found"
    – Ashish
    Commented Sep 1, 2020 at 6:20
  • @JimNoellsch yes but we would like to change url as per the page showing. When we are using error handling module then it is showing page not found when something go wrong but url does not update as per the page.
    – Ashish
    Commented Sep 1, 2020 at 6:40

1 Answer 1


Try changing the name of the custom error page to something else, e.g., 404-error. Sitecore has a default error page with the same name.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.