Forum Moderators: phranque
I have two rewrite rules that I am struggling with.
RewriteRule ^categories/browse/([^/]+)/([^/]+)/(feed¦rdf¦rss¦rss2¦atom)/?$ /index.php?cat_name=$1&subcat_name=$2&feed=$3 [QSA,L]
RewriteRule ^categories/([^\ ]*)/?$ /view_category.php?cat_name=$1 [QSA,L]
the problem is that when a url like "categories/browse/food/dogfood/blah" is entered the second rule is matched and I dont want that. it should generate a 404 error.
Much Regards,
Chris
For more information, see the regular-expressions tutorial cited in our forum charter [webmasterworld.com].
Jim