Author: learning.net | Posted on: 1/19/2010 8:57:41 AM | Views : 260

Hi All,


i am trying to redirect my domain name ( www.mysiteltd.com) to another domain name ( www.mysite.com). I own both the domain names. i thought of using this code, but i am not able to convert it properly into C#. can someone help me out please, i appreciate it
here is the code i have in VB

If Strings.InStr(Request.ServerVariables("URL"), "http://www.mysiteltd.com") = 1 Then
Response.Status = "301 Moved Permanently"
Response.AddHeader("Location", "http://www.mysite.com/")
End If



thanks I appreciate it





...

Go to the complete details ...