When I check my page using those online host header analyzers, the page says 200 OK.
But when viewing in my browser, it redirects to another website (which is how I want it to be).
The code that I use is:
context.Response.Status = "301 Moved Permanently";
context.Response.AddHeader("Location", "http://www.example.com/article" + articleID);
context.Response.End();
I put this code in a HttpModule
.
it is working because when you try and hit the url, it does the redirect. It just doesn't seem to be returning the correct http header.
Is there something wrong?