Hi, I'm just in the middle of setting up a new website, I've set up the domain pointer and put a redirect in the web.config file on my root directory. http://pixelheads.org/pixel/ http://pixelheads.com.au/ Both websites show the same page, but what I'm now trying to do is set up a 301 redirect so whenever somebody goes to the first URL it redirects them to the second URL (I don't want google seeing it as duplicate content). I've put a global.ascx file in my root directory with the follwing code: Code: Sub Application_BeginRequest(ByVal sender As Object, ByVal e As EventArgs) If HttpContext.Current.Request.Url.ToString().ToLower().Contains("http://pixelheads.org/pixel/") Then HttpContext.Current.Response.Status = "301 Moved Permanently" HttpContext.Current.Response.AddHeader("Location", Request.Url.ToString().ToLower().Replace("http://pixelheads.org/pixel/", "http://pixelheads.com.au")) End If End Sub Code from: http://www.mycsharpcorner.com/Post.aspx?postID=40 But, when I go to the first URL it doesn't take me to the second URL. What am I doing wrong? Thanks in advance.