I had a really tough time this morning trying to figure out how to redirect all pages of one domain to another domain, but stop one (or two) of the pages on the old domain from redirecting.
The solution is as follows:
RewriteEngine on #Note: do not include a "/" in the beginning of the path, this is automatic RewriteCond $1 !^enquiry_control/enquiry4.php RewriteCond $1 !^enquiry_control/capt.php RewriteRule (.*) http://talooma.com/$1 [R=301,L] |
Yup, its as easy as that – typical.
Hello thanks for sharing this, very appreciated. But when I try this the pages which not redirect to new domain it not happen and redirect to 404page of new domain with .shtml extension. BTW I’m working with wordpress.
Thank You very much 🙂 It was very useful for me
Glad I could help 🙂
working fine.but images are not displayed.jquery also not working