IIS7 301 Redirect from a List of URLs
- by corymathews
Recent changes are forcing me to add a bunch of 301 redirects. Seems that IIS7 is my best bet as compared to redirects within the files.
I have found how to add them 1 by 1 but this requires the page/folder to exist (which most don't anymore(and creating them seems to defeat the point of the redirect)) and does not work on dynamic urls. I also cannot go to every page and add the redirects at the page level because some older pages are in php which is no longer supported on the new server. There is also no obvious pattern to the changes so each one must be made on its own.
samples of the redirects
page.htm - /page/
/folder/folder/ - /folder/folder.cfm
/folder/folder/ - /folder/
/page.php?id=1 - page.htm