This seems to work:

- map the website to a directory with nothing in it, except an index.htm or
index.cfm that does a redirect
- map your 404 custom handler to a .cfm file that captures cgi.script_name
and cgi.query_string and redirects to where you want (it'll take an extra
bit of effort to capture HTTP POST's, but it shouldn't be too much trouble)
- make sure that you setup the custom handler in both cf and iis

---
Billy Cravens

----- Original Message -----
From: "Angelo McComis" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Friday, December 07, 2001 2:50 PM
Subject: RE: ISAPI URL Remapping Filter


> James
>
> One way that comes to mind is this:
>
> 1/ Create a "handler.cfm" that examines the URL, query string, post
> data, and all that stuff.
>
> 2/ make it the default file for the site (so naming it index.cfm would
> work on most installations)
>
> 3/ In IIS, set it to be the custom 404 handler as well.
>
> In the logic for this, you could do any combination of cfswitch/cfcase
> statements looking for combinations of hostname, URI, etc. Then, do
> CFLocation or meta-refresh (or whatever you need to do) to the request
> to send the browser where it needs to go.
>
>
> Angelo
>
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]] On Behalf Of Cordiner,
> James
> Sent: Friday, December 07, 2001 3:47 PM
> To: CF-Talk
> Subject: ISAPI URL Remapping Filter
>
>
> Hi,
>
> I am looking for some kind of filter for IIS4 (an ISAPI filter maybe?),
> that would take requests for a page and perform a search and replace on
> the content before returning it. This would be to have URLs re-mapped,
> from something like http://www.somedomain.com to
> http://192.168.0.1/somedir .
>
> I would try to do this in CF somehow but I just can't see how. For one,
> not all our pages have been switched over to CF and just the conversion
> at this immediate point in time would make it unfeasable.
>
> jms.
>
> James Cordiner
> New Media Developer/Programmer
> Art Gallery of Ontario
> 317 Dundas Street West
> Toronto, Canada  M5T 1G4
>
> http://www.ago.net
> tel: 416-979-6660 ext.266
> fax: 416-204-2709
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
>
>
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to