I'm trying to create some search engine safe urls with CFMX 6.1, Apache
2.0.47, and mod_rewrite on Linux.
I want to have a url like this: http://www.site.com/item/30/ that
translates to http://www.site.com/item.cfm?id=30
So I have a rewrite rule:
RewriteEngine On
RewriteRule ^/item/([0-9]+).*$ /item.cfm?id=$1 [NE]
If I visit /item/30/ it will give me the source code for item.cfm
if I visit /item/30.cfm it works. So CF is not being called in the prior
example.
I tried mapping the * url patteren to CfmServlet in the web.xml as
well, and all that did was cause php to stop working.
Am I missing something?
thanks
____________________________________________
Pete Freitag
http://www.cfdev.com/
Author of the CFMX Developers Cookbook
http://www.amazon.com/exec/obidos/ASIN/0672324628/netgig-20
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
