G
Guest
Hi,
I've implemented a very simple URL rewriter using an HttpModule. It simply
intercepts the url, looks it up in a local config table and redirects the
browser to a different URL.
Of course, this only works for files with extensions that cause them to be
processed by ASP.NET. It doesn't work for file types server by IIS only, e.g.
".jpg".
I believe I can change the machine.config to make "jpg" files go through
ASP.NET but what if I install this app on a "hosted" site where I can't make
changes to the machine.config. Is there any other way to make this happen?
Preferably I also want it to be limited to files in specific folder i.e.
/special/my.jpg will redirect but /images/logo.jpg behaves as normal (to keep
up performance).
Thanks!
I've implemented a very simple URL rewriter using an HttpModule. It simply
intercepts the url, looks it up in a local config table and redirects the
browser to a different URL.
Of course, this only works for files with extensions that cause them to be
processed by ASP.NET. It doesn't work for file types server by IIS only, e.g.
".jpg".
I believe I can change the machine.config to make "jpg" files go through
ASP.NET but what if I install this app on a "hosted" site where I can't make
changes to the machine.config. Is there any other way to make this happen?
Preferably I also want it to be limited to files in specific folder i.e.
/special/my.jpg will redirect but /images/logo.jpg behaves as normal (to keep
up performance).
Thanks!