I don't know if this is the right section but I would like to ask if anybody knows the answer to this little issue i am experiencing.
so basically when page is not found the sitefinity redirects to a custom Error page (404); by
using Fiddler, I noticed before landing on the Custom Error Page, the page I requested gets a 302 status.
Having 302 followed by a 404 kind of sucks from an SEO perspective.
I guess my question is, It is possible to make the 302 into 301 instead?
sender, EventArgs e)
Exception ex = Server.GetLastError();
var context = HttpContext.Current;
"301 Moved Permanently"
context.Response.StatusCode = 301;
Thank you for the reply,
I used the code you provided but I still receiving 302 error then 404
FYI: I have Sitefinity 5.1 i don't know if it helps or not.