Hi Team,
Currently, I'm working with Kentico 13 with 404 pages without redirects. Currently, the middleware is' app in the startup.cs file.UseStatusCodePagesWithReExecute("/error/{0}") that redirects to the 404 error page.
startup.cs
file.UseStatusCodePagesWithReExecute("/error/{0}")
So as per my requirement return 404 page without redirecting on the page only page 404 page content will be shown.
If you're doing that you need to set up a specific route to serve those page errors up or create pages in the content tree under /error/404 or /error/403, etc.
Please, sign in to be able to submit a new answer.