Redirect to root page instead of showing 404 Page not found content of Umbraco
Hi all,
I need your help. When user enters the wrong url, by default Umbraco will show the Page not found content. From our client request, we need to redirect back to root instead of showing any content. I have tried to use IContentLastChanceFinder or Middleware such as UseStatusCodes (not working, Umbraco might disable this feature in Pipeline), ErrorHandling (it hitted but the response data has been returned).
Redirect to root page instead of showing 404 Page not found content of Umbraco
Hi all,
I need your help. When user enters the wrong url, by default Umbraco will show the Page not found content. From our client request, we need to redirect back to root instead of showing any content. I have tried to use IContentLastChanceFinder or Middleware such as UseStatusCodes (not working, Umbraco might disable this feature in Pipeline), ErrorHandling (it hitted but the response data has been returned).
Any suggestion from yours ?
Umbraco version: 11
Thanks
I've not tried this, but could you not just set the guid for the 404 handler to be the guid of your home page?
is working on a reply...