Showing posts with label response.addheader. Show all posts
Showing posts with label response.addheader. Show all posts

Thursday, 13 December 2012

ASP: permanent redirect with HTTP 301 status code

   


There are situations when we need to redirect the visitor to a web site to another place.
This is done for example when the web site is no longer updated or valid.
In order to do so we can redirect the visitor permanently with HTTP 301 response code. That is done because we need to tell the user-agent that the location is permanently moved elsewhere.
I believe you all know what HTTP headers are... or maybe we should start from there...