I have a situation where I have a website with the following structure.
Site: www.xyz.com
Folders:
www.xyz.com/site/folder1
www.xyz.com/site/folder2
www.xyz.com/site/folder3...and so on.
My current apache redirect redirects the entire www.xyz.com to www.newsite.com as such:
RewriteRule ^/$ http://www.newsite.com/newsite/ [R=301,L]
What I want to do is this. I want to redirect the entire site of www.zyx.com to www.newsite.com EXCEPT www.xyz.com/site/folder2. The only way i know how to do it is with explicit redirects for each folder. I feel there is a better approach (like using a not equal to or something similar) that can be done with one redirect, but I'm not able to get it to work. Just wondering if anyone can point me in the right direction.