You forgot the CGI scope on the second condition here: <cfif #CGI.SERVER_NAME# CONTAINS "www.morel.ca" AND #SCRIPT_NAME# CONTAINS "/tasty/"> <cflocation url="/products/index.cfm?n1Id=1&n2Id=7" addtoken="no"> </cfif> Should be CGI.SCRIPT_NAME
Greg On Mon, Jan 26, 2009 at 10:31 AM, Greg Luce <luce...@gmail.com> wrote: > Yeah, SERVER_NAME is only going to have the server name, not the > subdirectory. You'll have to look at CF_TEMPLATE_PATH or PATH_TRANSLATED I > think to find "tasty". > > Greg > > > On Mon, Jan 26, 2009 at 10:12 AM, Paul Ihrig <pih...@gmail.com> wrote: > >> 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:318541 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4