I'm doing the following:
RewriteCond %{HTTP_HOST} ^www.exam-ple.com [OR]
RewriteCond %{HTTP_HOST} ^exam-ple.com
RewriteRule (.*) http://www.example.com/$1 [R=301,L]
Which works fine.
Now I want to exclude a single file for both options:
RewriteCond %{HTTP_HOST} ^www.exam-ple.com [OR]
RewriteCond %{HTTP_HOST} ^exam-ple.com
RewriteCond %{REQUEST_URI} !^/thefile\.html$ [NC]
RewriteRule (.*) http://www.example.com/$1 [R=301,L]
but going to [
()exam-ple.com...] still gets redirected to: http://www.example.com/thefile.html
What am doing wrong?