URL Rewriting for certain file types
- From: BillAtWork <BillAtWork@xxxxxxxxxxxxx>
- Date: Thu, 25 Oct 2007 07:22:01 -0700
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!
.
- Follow-Ups:
- Re: URL Rewriting for certain file types
- From: George Ter-Saakov
- Re: URL Rewriting for certain file types
- Prev by Date: RE: Datalist referencing a textbox with javascript
- Next by Date: Re: Forcing ASP.NET 1.1 isn't working
- Previous by thread: RE: Datalist referencing a textbox with javascript
- Next by thread: Re: URL Rewriting for certain file types
- Index(es):
Relevant Pages
|