Having trouble with regular regex for RewriteCond
RewriteCond %{REQUEST_URI} !^/foo/
It works as expected, i.e. it does not apply after rewriting to all URLs starting with / foo /.
RewriteCond %{REQUEST_URI} !^/foo/bar/
On the other hand, it does not work as I expect. URLs starting with / foo / bar / are still being rewritten.
How to enter the correct regular expression to exclude subdirectories?
source
share