if (Page.Request.Url.DnsSafeHost != "www.abc.com")
{
Response.Status = "301 Moved Permanently";
Response.AddHeader("Location", "http://www.abc.com");
{
Response.Status = "301 Moved Permanently";
Response.AddHeader("Location", "http://www.abc.com");
}