Hi Les,

Apache's mod_rewrite can do this for you.

add this to your apache virtual host directive:
------------------
<Directory /home/username/public_html/events>
RewriteEngine on
RewriteRule ^([^/]+)$ index.cfm?event=$1 [QSA,L]
</Directory>
------------------

Cold Fusion will then see this:
www.mysite.com/events/MyBigEvent

the same way it would see this:
www.mysite.com/events/index.cfm?event=MyBigEvent

If you're not using apache, perhaps whatever web server you're using can 
do something similar.

Warm regards,
Jordan Michaels
Vivio Technologies
http://www.viviotech.net/
BlueDragon Alliance Member
[EMAIL PROTECTED]


Les Mizzell wrote:
> I'm trying to create the ability to add detail pages for events on a 
> site. But, I need the URL for each event to be "simple".
> 
> I don't want anything like:
> www.mysite.com/events/index.cfm?event=123456
>   or
> www.mysite.com/events/index.cfm?event=somethinghere
> 
> I know how to rewrite it into:
> www.mysite.com/events/index.cfm/event/MyBigEvent
> 
> But I need it simplified even more. Instead, I need to have
> www.mysite.com/events/MyBigEvent
> 
> ...which would get parsed, load the index.cfm page in the "events" folder 
> and grab the proper event info from the database based on the variable 
> name 'MyBigEvent'
> 
> I've not quite figured out how to get the URL to parse properly to do 
> this yet though.
> 
> Can somebody point me in the correct direction here please?
> 
> 

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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:296577
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