Forum Moderators: phranque
RewriteEngine On
RewriteBase /
# no redirect if you enter 'www.olddomain.se'
# RewriteCond %{REQUEST_URI} !/$ [NC]
# no redirect if you try to access one of the following pages
RewriteCond %{REQUEST_URI} !^/produkter [NC]
RewriteCond %{REQUEST_URI} !^/kontakt [NC]
#this one below I am uncertain on how to write but what I want is to filter out all WP stuff like wp-admin, wp-content
RewriteCond %{REQUEST_URI} !^/wp.* [NC]
#redirect everything else to the new domain
RewriteRule ^(.*)$ http://www.newdomain.se/$1 [NC]
#and then let WP do it's magic
# BEGIN WordPress
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress