joined:May 16, 2009
hello I've created this rule
RewriteRule ^(news|info)/(((([a-z]*)/?)?(([a-z-]*)/?)?)?(([a-z]*)/?)?)? index.php?section=$1&cat_1=$5&cat_2=$7&cat_3=$9
that should rewrites links that start with site.com/news/ OR Info/ and could have up to three other cat after them, but are not mandatory after news or info and can be only 1 2 or 3 and could end with a / or without.
This works it seems. the problem is that if I put More than three cat doesn't give a 404 error! I want that once it gets a forth element (news/cat1/cat2/cat3/cat4 <- not allowed) it won't rewrite! Is it possible?