Try our conversational search powered by Generative AI!

404 page

Vote:
 

Hi,

When ever particular page is not found we are redirecting to 404 page.

The 404 page should return status code 404. Today it’s returning status code 302 (temporary redirect).

can you please tell me how to get status code 404,when particular page redirects to 404.

#48753
Feb 15, 2011 11:01
Vote:
 

Hi Sree

See Displaying a Custom Error page tutorial from www.asp.net for a nice walkthrough.

Hope this helps.

Frederik

#48829
Feb 16, 2011 14:15
Vote:
 

Hi,

The solution mentioned in the above URL is fine.But I want to disaplay my site's framework and Top menu etc in the error page.

We developed a seperate page type errorpage.aspx...which will get the the framework when we use the response.redirect depending on the Current page(here it is errorpage.aspx).Where as if i use server.transfer i am getting error becuase in this case Currentpage is null as accessed page is not an episerverpage.Is there anyway to get framework while using server.transfer?

#49548
Mar 23, 2011 7:12
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.