Monday, September 28, 2009

301 redirect windows server - for HTML pages

I was working on moving a website over... The old site was html only - the new one is ASP.net. The puzzle was how to get the 301 redirects set up on a windows box? I have done it in code-behind... if it is an ASP.Net page... and with classic "asp" pages.

HERE is what I found
IIS Redirect
In internet services manager, right click on the file or folder you wish to redirect
Select the radio titled "a redirection to a URL".
Enter the redirection page
Check "The exact url entered above" and the "A permanent redirection for this resource"
Click on 'Apply'

more on 301 redirects