Here's an example of how to use a 301 redirect but exclude a file and/or folder.


 
RewriteEngine On

RewriteCond %{REQUEST_URI} !^/my-file-name.html

RewriteCond %{REQUEST_URI} !^/my-folder/

RewriteRule ^(.*)$ http://www.my-other-website.com/$1 [R=301,L]