Antonio Pérez wrote:
> Hi!
> 
> I have this Regular Expression rule:
> 
> ^/tag/.+?/
> 
> with a redirection handler with this setting:
> 
> Regular expresion: ^/tag/(.+)?/
> Substitution: /index.php?tag=$1
> 
> I only want that a request like this:
> "http://localhost/tag/this_is_a_tag/"; matches this rule, but this one:
> "http://localhost/tag/this_is_a_tag/and_other/"; matches too!.
> 
> What I'm doing wrong?.

You have to add a $ at the end of the regular expression:

   ^/tag/(.+)?/$

There is more information about the reason behind it at:

   http://perldoc.perl.org/perlre.html#Regular-Expressions

Cheers!

--
Greetings, alo
http://www.alobbs.com/
_______________________________________________
Cherokee mailing list
[email protected]
http://lists.octality.com/listinfo/cherokee

Reply via email to