I'm trying to redirect all requests except those beginning with certain paths.
for example,
http://www.example.com/mypath1
shouldn't redirect
http://www.example.com/mypath2
shouldn't redirect
Everything else should redirect
So far ive tried getting it working using just one of the exception paths like this:
RewriteRule ^(?!/mypath1/).*$ http://www.google.com/? [R=301,L]
and like this:
RewriteCond %{REQUEST_URI} !^/mypath1/.* [NC]
RewriteRule ^.*$ http://www.google.com/? [R=301,L]`
and like this:
RewriteCond %{REQUEST_FILE} !^/mypath1/.* [NC]
RewriteRule ^.*$ http://www.google.com/? [R=301,L]
However everything I try is just redirecting all requests. Does anyone know how to do this?