Just out put it.

Dump the CGI scope to see the parts you need.

SCRIPT_NAME will include the file name.

Also be careful of case. Why not FindNoCase()?

Adrian

> -----Original Message-----
> From: Paul Ihrig [mailto:pih...@gmail.com]
> Sent: 26 January 2009 15:13
> To: cf-talk
> Subject: redirect question SERVER_NAME script_name
> 
> hey guys..
> 
> trying to set up a ton of redirects in application.cfm
> 
> they don't seem to be working.
> 
> i want if  url is www.morel/tasty/
> to goto a addy...
> 
> <cfif #CGI.SERVER_NAME# CONTAINS "www.morel.com/tasty/">
>         <cflocation url="/products/index.cfm?n1Id=1&n2Id=7"
> addtoken="no">
> </cfif>
> 
> not sure if i need to check script_name to check for folder.


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:318528
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to