URL Rewriting for certain file types



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!
.



Relevant Pages

  • Re: The Windowsupdate site redirects and fails
    ... > which immediately redirects in turn to ... I would suspect your User-Agent string. ... I suspect it is not your browser which is telling you that but the ... Another site which you could use for comparing browser functionality is: ...
    (microsoft.public.windowsupdate)
  • Still fails - giving up - Thanks anyway for your careful help
    ... Subject: Re: The Windowsupdate site redirects and fails ... > which immediately redirects in turn to ... the application your browser is connecting to. ... User-Agent string that each request contains? ...
    (microsoft.public.windowsupdate)
  • integrated authentication not working from redirect
    ... When the above page is accessed by the browser above, ... Windows logon credentials are supplied, ... If I access cgi (also hosted in the same security ... zone as the browser) that redirects to the ...
    (microsoft.public.inetserver.iis.security)
  • Fwd: cdimage.debian.org presents different faces for "ftp" and "http" access
    ... redirects me to ... but pointing my browser at ... been built and the http server still needs to be synced. ...
    (Debian-User)
  • Re: My web
    ... You might need a javascript enabled browser for my website to ... To be able to access all features, you must have a browser that can ... which also redirects to another page ... Good job s/es don't have ears. ...
    (alt.internet.search-engines)