Redirect site with .htaccess but exclude two+ folders
snippet in htaccess

Redirect site with .htaccess but exclude two+ folders

user8396

RewriteEngine on

# Do not rewrite these directories
RewriteRule ^(uploads) - [L]
RewriteRule ^(second) - [L]

# Rewrite all other URL
RewriteRule (.*) http://example.com/$1 [L,R=301]

Redirect site with .htaccess but exclude two+ folders

user6539

RewriteEngine on
RewriteCond %{REQUEST_URI} !^/test/
RewriteCond %{REQUEST_URI} !^/my-folder/
RewriteRule (.*) http://www.newdomain.com/$1 [R=301,L]