I want to use htaccess to redirect certain pages to its equivalent in another domain, other pages redirect to homepage.
Only these pages will be redirected, otherwise, pages have to be redirected to the new domain home page.
This is my try:
<IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^certain-page$ http://new-domain.com/certain-page [R=301,L] RewriteRule ^another-certain-page$ http://new-domain.com/another-certain-page [R=301,L] </IfModule>
But don't know how to exclude other pages.
Any help here?
Thanks in advance!