I am looking into changing our companies IIS configuration so that we do not have to have several hundred virtual directories, which all redirect to the same site albeit with different CGI parameters.
Our situation right now:
- our website (based on ASP .NET). The website is navigated (built by the server) via CGI parameters (for example: http://www.mysite.de/shop/handler.aspx?menuid=255&submenuid=12
- we have about 400 (!) virtual directories under the same server which redirect to different menu- and submenuids (for example www.mysite.de/SuperProduct would redirect to www.mysite.de/shop/handler.aspx?menuid=255&submenuid=12)
I would like to use your rewrite filter to handle all requests to virtual directories which are
not configured inside IIS.
We have the main virtual directory (www.mysite.de/shop),
The we havesome other virtual dirs (www.mysite.de/training, www.mysite.de/support), which are configured (but the directories inside the filesystem are named entirely different)
The a user comes along and tries to go to www.mysite.de/superProduct, the rewrite should go to www.mysite.de/shop/handler.aspx?redirect=SuperProduct (and the site itself looks up the actual menu- and submenuids inside the database. If it cannot find them,
it will simply go to the default page)
I have successfully configured your filter so that it does rewrite the virtual directories, but sadly
ALL virtual directories, even those which are configured inside IIS.
So, is there a way to tell the filter to rewrite only those virtual directories which cannot be found on the server (and I don't mean looking up the directories inside the file system; they are not there)? Or is it only possible if I enter all configured
virtual directories as an exception inside the Rewrite filter ini file?
I hope you understand what I am trying to do, and thank you for your help in advance,