Page is a not externally linkable
Sandro87 - 5:33 pm on Mar 15, 2010 (gmt 0)
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?