This would possibly work except it is not flexible. I have other URLs that contain params.. Sometimes more than 1. I need to be able to:
1. match the first part of the URL 2. Discard the "end" part - the part that is /qx/index.htm 3. Turn the middle part into a query string 4. Rewrite the URL to the proper handler with the query string... In addition, this doesn't look like the rules I'm writing.... Perhaps it's not as "mod_rewritish" as I thought. The filter is called ionicIsapRewriter and I've used it for Farcry sites with this rule: RewriteRule .*/go([^\?]*)(?:\?(.*))? /go.cfm?path=/go$1&$2 Does that syntax look familiar to anyone? -mark -----Original Message----- From: Russ [mailto:[EMAIL PROTECTED] Sent: Monday, February 12, 2007 10:57 AM To: CF-Talk Subject: RE: Quick help on a mod rewrite rule Well I'm not going to do a very good job without seeing the rest of the samples... but something like this: RewriteCond %{HTTP_HOST} ^www.wheretobuild.com$ [NC] RewriteCond %{REQUEST_URI} ^/States/xq/ASP/StateName\.(.+)+/qx/index.htm$ [NC] RewriteRule ^/(.*)$ http:// www.wheretobuild.com/States/index.cfm?StateName=%1 [R=301,L] This is not tested, but this should work... Russ > -----Original Message----- > From: Mark A Kruger [mailto:[EMAIL PROTECTED] > Sent: Monday, February 12, 2007 11:48 AM > To: CF-Talk > Subject: Quick help on a mod rewrite rule > > I apologize for those of you who may have seen this post on another > list this morning... I'm having trouble finding an answer. > > I really suck at these. I need a rule that will turn this: > > http://www.wheretobuild.com/States/xq/ASP/StateName.Kansas/qx/index.ht > m > > Into this: > > http://www.wheretobuild.com/States/index.cfm?StateName=Kansas > > I know that there are some regex and SES experts on this list. Can any > of you do in like 10 seconds? My first 3 attempts based on samples > failed... > > -mark > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:269533 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4