I'm trying to figure out the best way to redirect a client site to a new blog. They have a Wordpress installation, which they want to redirect to a new Wordpress site. The issues are they want to redirect everything, but four posts, to the root of the new domain. The four posts have corresponding ones on the new blog, so
olddomain/setting-goals/ redirects to newdomain/setting-goals/
The same goes for three other posts, but I can't put them here due to reputation rules.
My issue comes in how can I do the redirect of four posts to their corresponding ones on the new domain and also redirect everything else (including home page) to the root of the new domain?
A caveat is they want to still be able to access their Wordpress admin panel on the old domain, so wp-login.php and the /wp-admin/ folder.
I tried this code in htaccess on top of the default Wordpress redirect, but it didn't work for me. I just wanted to see if I can get one of the redirects working correctly. It was just redirecting the setting-goals/ to the root of the new domain:
RewriteEngine on
RewriteCond %{REQUEST_URI} ^/setting-goals/ [NC]
RewriteRule ^setting-goals/(.*)$ http://www.newdomain.com/$1 [L,R=301]
RewriteRule (.*) http://www.newdomain.com? [R=301,L]