Forum Moderators: phranque
But it's not clear what your set-up is, or whether you want to redirect requests for an old domain to a the new domain, and whether it is domainA or domainB that is the new domain.
Please describe your requirements in detail, and post the code you've tried so far.
Jim
The content has been migrated to TWO separate domains. All of the content will now be going to domainA *except* for a single folder, which will be going to domainB. And we named that single folder (on domainB) the same name that it had on domainX.
We have this working (see below) but it overrides any attempt we have to send that other directory to domainB. And grabs ALL of the traffic for domainA.
Options +FollowSymlinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^(domainX¦www.domainX) [NC]
RewriteRule ^(.*)$ [domainA.com...] [R=301,L]
RewriteCond %{HTTP_HOST} ^(www\.)?domainX\.com [NC]
RewriteCond $1 ^folderB/
RewriteRule ^(.*)$ http://domainB.com/$1 [R=301,L]
#
RewriteCond %{HTTP_HOST} ^(www\.)?domainX\.com [NC]
RewriteRule ^(.*)$ http://domainA.com/$1 [R=301,L]
Jim
[edited by: jdMorgan at 1:06 am (utc) on June 18, 2009]