Earlier the admin RewriteRule was effecting scripts/admin.js until I added the RewriteCond.
Then I noticed that scripts/members.js was being effected by the same rule with the member context.
I added the exact same RewriteCond after as is below…
RewriteEngine on
RewriteCond %{REQUEST_URI} !\.(css|js|zip)$
RewriteRule .*/admin(.+) admin$1 [QSA]
RewriteCond %{REQUEST_URI} !\.(css|js|zip)$
RewriteRule .*/members(.+) members$1 [QSA]
Instead of having to manually add a RewriteCond every time to deal with issues how can I merge these rules please?
RewriteRule .*/admin(.+) admin$1 [QSA]
RewriteRule .*/blog(.+) blog$1 [QSA]
RewriteRule .*/forums(.+) forums$1 [QSA]
You can merge your three checks into one like this:
But it does seem like a rule to simply stop processing for js/css files will be a better option for you, unless you actually need rules applied to them for some reason.