I am looking to created a method that will redirect the user appropriately based on the status code provided. The main requirement I have is that it is Search Engine friendly.
So I created the following:
public static void Redirect(HttpResponse response, int type, string url)
{
response.ClearContent();
response.ClearHeaders();
response.Clear();
switch (type)
{
case 200:
response.StatusCode = (int)HttpStatusCode.OK;
response.StatusDescription = "OK";
break;
case 301:
response.StatusCode = ( Go to the complete details ...