>> Is there a way with CF to do what you can do with Apache's mod rewrite -
>> to be able to pass a URL, say
>>
>> http://domain.com/x/y/z/
>>
>> which would actually call the index.cfm file in the webroot, and then
>> shuffle the x, y, and z values into variables, to mimic the normal style
>> URL, i.e.
>>
>> http://domain.com/index.cfm?var1=x&var2=y&var3=z


Yes, you can do this.  I have a script that came with Mary Jo Sminkey's 
CFWebstore called "sesConverter" that does exactly what you describe.  It 
was last updated in 2002 but it works fine.  I would post it but I'm not 
sure what the licensing situation is, it doesn't say in the code anywhere. 
Suffice to say it can be done.

-- Josh


----- Original Message ----- 
From: "Ryan Stille" <[EMAIL PROTECTED]>
To: "CF-Talk" <[email protected]>
Sent: Tuesday, November 28, 2006 2:49 PM
Subject: Re: CF and URL vars as folders?


> Scott Weikert wrote:
>>
>> I found this old thread that Ray Camden posted to:
>>
>> http://www.houseoffusion.com/groups/CF-Talk/thread.cfm/threadid:4667#20603
>>
>> but he didn't get into any specifics.
>>
>> Any URLs pointing me in the right direction would be great! Thanks much
>> guys.
>>
>>
> ColdFusion doesn't have a lot to do with it. If you setup Apache and
> mod_rewrite to do that, you can then parse the x y z out of the
> CGI.PATH_INFO variable, or if you rewrite the url completely to be like
> var1=x&var2=y then they will just be in the URL scope.  Or are you
> asking how to do this with IIS?
>
> -Ryan
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:261943
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to