Hi guys, I am wanting to perform the redirect of www.domain.com/default.aspx to www.domain.com to sort canonicalisation issues - apparently this cannot be done because it will be set to an infinite loop as they are essentially the same file - I'm not a techy, but does this make sense?!! Is the only option to use a robots.txt file in this case? Best regards, Mischa
You can do it by making some changes in IIS setting or you can use this script in the page header: <script runat="server"> private void Page_Load(object sender, System.EventArgs e) { Response.Status = "301 Moved Permanently"; Response.AddHeader("Location","http://www.new-url.com"); } </script> I didn't use it myself, however, got it from a trusted member..
Many thanks Manish, I had heard you can do it using JavaScript. I was wondering if the search engines have the ability to read that script and whether anyone else has used this method? Thank you, Mischa
Search engines have nothing to do with your scripts that are used to redirect the pages, these scripts will simply move crawlers and users to the pages where you want to send them..