Ray's entry was the basis of what I used as well, with one addition.  I set
up so that users can specify a "friendly url" for any given article or page
---- those are then added to a table.  So before it goes to the url parser,
I do a database lookup:

http://site.com/donate.htm actually =
http://site.com/index.cfm?page=module&moduleid=42

If that fails, I pass it to Ray's function and it returns the values.

This came in very handy when I did a site migration recently -- I had to
merge two very large sites of two separate nonprofits.  The site that shut
down, I was able to keep all of the original url's for all for their content
by tagging their urls into the friendly url field in my database.  Now the
page simply pulls up with either link.

See:
http://www.veteransforamerica.org/programs/immap/
http://www.veteransforamerica.org/ModuleID/119
http://www.veteransforamerica.org/index.cfm?page=Module&ModuleID=119



On 11/28/06 6:39 PM, "Raymond Camden" <[EMAIL PROTECTED]> wrote:

> Here is a blog entry on it as well:
> 
> http://ray.camdenfamily.com/index.cfm/2005/8/2/Ask-a-Jedi-Working-with-SES-URL
> s-and-ColdFusion
> 
> 
> On 11/28/06, Russ <[EMAIL PROTECTED]> wrote:
>> Take a look at the source code for blogCFC.  I believe he uses something
>> like this to allow for the blog urls, without using apache rewrite.
>> 
>> Russ
>> 
>>> -----Original Message-----
>>> From: Scott Weikert [mailto:[EMAIL PROTECTED]
>>> Sent: Tuesday, November 28, 2006 5:42 PM
>>> To: CF-Talk
>>> Subject: CF and URL vars as folders?
>>> 
>>> 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
>>> 
>>> 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.
>>> 
>>> 
>>> 
>>> 
>> 
>> 
> 
> 

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