Single quotes. Single quotes. (sigh) Thanks, Barney.

The answer is that I needed the result to be consistent with what I've been 
doing manually for two years: creating directories and index.cfm files on the 
web server to get URLs like www.example.com/go/myURL. I wanted to create a 
quick add/edit/delete form so the marketing staff can manage these aliases 
themselves. Given the correct syntax, I knew this would work and it would 
produce the results I needed.

That said, with this stable, I'll now look at a rewrite script to produce the 
same result. 

Before I dive in, can anyone point me to a good rewrite script that would give 
me: www.example.com/go/myURL 

Thanks for the info, and thanks for the 301 v 302 education. 

Cameron


><cfset fileOutput = '<cflocation url="#longURL#" addtoken="false" />' />
>
>One might ask why you're using directories and CFM files to accomplish
>this task.  Every web server supports rewriting engines which would
>allow you to use a single script and a database to accomplish this
>task in a far more streamlined fashion.
>
>Further, you almost certainly want to be doing a 301 instead of a 302
>to the long URL, which CFLOCATION doesn't provide.  If you opt to
>continue down this route, probably want to use CFHEADER instead.
>
>cheers,
>barneyb
>
>On Thu, Mar 26, 2009 at 4:43 PM, Camer
>> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:321041
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