Also, use the L flag to stop processing rules. Adrian
-----Original Message----- From: Russ Sent: 29 February 2008 14:27 To: CF-Talk Subject: RE: Help with Rewrite Rule! (circuit.fuseaction) Put the RewriteRule for books.all first. Russ > -----Original Message----- > From: cf coder > Sent: Friday, February 29, 2008 9:07 AM > To: CF-Talk > Subject: Re: Help with Rewrite Rule! (circuit.fuseaction) > > Thank you Kay for suggesting this. It has done the trick. I'm really glad > I don't have to change every single link on the site. > > I have another nagging problem and would appreciate anybody's help. I'll > try to explain as best as I can. > > I want to a RewriteRule that can do the following: > > I have a rule that translates: > > http://mysite/index.cfm?offers.books&bookid=1 > > to: > > http://mysite/offers/books/Harry-Potter > > And the rule that does this is: > RewriteRule /offers(/books/.*) > /index.cfm?go=offers.details&bookid=${mapfile:$1} > > The mapfile.txt file contains the "book keyword" and "bookid", ex: > /books/Harry-Potter 1 > > and a rule that translates: > > http://mysite/index.cfm?go=books.all > > to: > > http://mysite/offers/books/all > > And the rule that does this is: > RewriteRule /offers/books/([a-zA-Z0-9.-]+)(.*) /index.cfm?go=offers\.$1 > [PT] > > Here's the problem: When I try to browse this page: > "http://mysite/offers/books/all" the browser gets confused because the > regular expression pattern for both the rules have the same pattern i.e > "/offers/books/". I hope this is making sense. I want to change my rule > which works in both the cases. > > Thanks in advance. > > Regards, > cfcoder ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:300168 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4