Forum Moderators: phranque
Please look at the following two rules,
RewriteRule ^([^/]+)/reviews.html(.*)$ /reviews.php?prof=$1&anc=$2 [L]
RewriteCond %{REQUEST_URI} !^/keys/.*$
RewriteRule ^([^.]+)/$ /show_pages.php?main_cat_name=$1&mode=maincatindex [L]
When i disable the second rule the first rules works fine however as soon as I enable it, the first rule is not matched anymore and the second rule is executed despite the fact that the second rule comes after first.
I am lost how to solve this. please help
Also, be aware that mod_rewrite in .htaccess is recursive; If any rule is executed, then mod_rewrite processing re-starts, in order to see if the new URL has rules that apply to it (for example, access control rules). This happens whether or not you use the [L] flag on rules.
Please describe the purpose of these two rules, and the URL-formats they are intended to rewrite.
What do you actually want these rules to do?
Jim