Return 404 page without redirect Kentico 13

pankaj saxena asked on February 8, 2024 06:25

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.

So as per my requirement return 404 page without redirecting on the page only page 404 page content will be shown.

Recent Answers


Brenden Kehren answered on February 9, 2024 16:25

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.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.