Les Mizzell wrote:
> While I have no problem writing/decoding URLS like:
> mysite.com/staff.cfm/mary_smith
> 
> I need a way to take it one step further. I don't want to see the ".cfm" 
> extension at all:
> 
> mysite.com/staff/mary_smith

This can be done using several methods.  My personal favorite is to use 
a custom 404 handler that processes the URLs and includes the files 
needed, but it can also be done through a URLRewriter ISAPI filter.  I 
use IIS, so your options may vary if you're running Apache.

In IIS, go into the site properties, then custom errors and find the 404 
error.  Select URL for the handler, and set the URL to whatever your 
processor will be (such as /URLHandler.cfm where the file is in the root 
of your site).

Within the code for 404.cfm you can look at the CGI variables and/or the 
URL values presented by IIS and parse the request out, then do whatever 
you need to do to handle it.

As I mentioned, this can also be done using a URLRewriter ISAPI filter, 
and some have had great success with that method as well.


-- 
Justin Scott | GravityFree
Network Administrator

1960 Stickney Point Road, Suite 210
Sarasota | FL | 34231 | 800.207.4431
941.927.7674 x115 | f 941.923.5429
www.GravityFree.com

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