You would be better off using an HttpModule to do 301s.
It can check each incoming request URL for certain strings using Regular Expressions and when it finds a match send back a 301 to the correct URL.
The urls to search for and the replacements can be stored in a config file.
Here's an example :
http://weblogs.asp.net/fma
but if you type "HttpModule URLRewriting" into Google you will find 100s more.
Main Topics
Browse All Topics





by: ShazbotOKPosted on 2008-06-28 at 11:15:57ID: 21891626
I would recommend instead using the IIS settings to redirect all references to that virtual directory.
In IIS right-click the desired folder --> properties -->directory
See screen shot below
Redirect