IIS7 301 Redirect from a List of URLs
Posted
by corymathews
on Stack Overflow
See other posts from Stack Overflow
or by corymathews
Published on 2010-04-20T16:14:39Z
Indexed on
2010/04/20
16:33 UTC
Read the original article
Hit count: 298
iis7
|301-redirect
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
© Stack Overflow or respective owner