Les...

I recently implemented SES URLS via my hosts ISAPI_rewrite module (for IIS
only). It took me a little while to figure out to do it, but once I got it,
it works great.

My original URL looked like this:
www.site.com/shirts.cfm?name=myshirt

I rewrote it to this:

www.site.com/shirts/myshirt


Create a file called httpd.ini and put it in the root of your website.

Put this into the file:
[ISAPI_Rewrite]
RewriteRule (.*)/shirt/(.*)/ $1/shirt.cfm?name=$2

- The first part is the directive you want to use.
- The second part is a regular expression for the incoming URL. In my case I
want anything before, and after /shirt/, and each set of parentheses is it's
own "variable" of sorts.
- The final part is what I want to match TO. The $1 and $2 correlate to the
sets of parentheses in the second part.



-----Original Message-----
From: Les Mizzell [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 13, 2008 10:23 AM
To: CF-Talk
Subject: a sIMPLER url?

I started with this:
http://www.mysite.com/seminar.cfm?id=Foreign08


Upon client request, I rewrote it to this:
http://www.mysite.com/seminar.cfm/Foreign08


Now they want this:
http://www.mysite.com/seminar/Foreign08


I've not been able to figure a way to do it without the .cfm extension.


Ideas?



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