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.
See Displaying a Custom Error page tutorial from www.asp.net for a nice walkthrough.
Hope this helps.
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?