Ok, I think what I'm trying to achieve is possible with a RewriteCond. Can 
someone please show me how to use RewriteCond? The condition should say, "if 
there is a bookid query parameter" run this rule:
RewriteRule /offers(/books/.*) 
/index.cfm?go=offers.details&bookid=${mapfile:$1} 


> hello everyody,
> 
> Can someone please help? I'm struggling to find a solution to my 
> problem. Any help will be greatly appreciated.
> 
> Thanks,
> cfcoder
> 
> > Can you show me an example to demonstrate what you mean? I don't 
> know 
> > much about writing RewriteRules or regular expressions.
> > 
> > Regards,
> > cfcoder
> > 
> > >Would using the end of string character ($) help with limiting 
> > things?
> > >
> > >Adrian
> > >
> > >I already tried that. This is the order:
> > >
> > >RewriteRule /offers/books/([a-zA-Z0-9.-]+)(.*) /index.
> cfm?go=offers\.
> > $1 [PT]
> > >RewriteRule /offers(/books/.*)
> > >/index.cfm?go=offers.details&bookid=${mapfile:$1}
> > >
> > >I can browse this page (it's working):
> > >http://mysite/offers/books/all
> > >
> > >but when I try to browse this page:
> > >http://mysite/offers/books/Harry-Potter
> > >
> > >I get an error which states:
> > >
> > >This is the template
> > >"../fuseboxShared/ErrorTemplates/fusebox.undefinedFuseaction.cfm"
> > >An Error of type "fusebox.undefinedFuseaction" has occurred
> > >undefined Fuseaction
> > >You specified a Fuseaction of Harry-Potter which is not defined in 
> 
> > Circuit
> > >books.
> > >
> > >The first rule is getting executed and this is what's causing the 
> > error.
> > >
> > >Any ideas?
> > >
> > >>Put the RewriteRule for books.all first.
> > >>
> > >>Russ 


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