I wanna redirect all my wordpress pages from one domain to another, such as: from: http://domain1.com/page/ to: http://domain2.com/page/ So I added to htaccess of domain1.com: RewriteRule (.*)$ http://www.domain2.com\/$1 [R=301,L] But I want to make certain files exceptions to the above rule, so I also added: RewriteCond %{REQUEST_URI} ^(images|javascripts|stylesheets|css|images-globa|js-global|js|htm|html).* but the second rule doesn't seem to work.