title: .htaccess Domain redirect conflicts with addon-domain
body: <p>I have a wordpress blog "old.com" hosted in shared hosting where "old.com" is the main domain...
  Then decide to redirect this  "old.com" to "new.com" (an addon domain hosted in same hosting)...</p>
  
  <p>I use this code on .htaccess</p>
  
  <blockquote>
    <p>Options +FollowSymLinks RewriteEngine on RewriteRule ^(.*)$
    <a href="http://new.com/" rel="nofollow">http://new.com/</a>$1 [R=301,L]</p>
  </blockquote>
  
  <p>Everything works just fine. I also have an addon domain, "addon1.com" and I still can access this perfectly (I added this "addon1.com" before I redirected "old.com" to "new.com)"</p>
  
  <p>The problem now is, I add "addon2.com" (another addon domain), but I can't access this domain... When I try to access this "addon2.com", it will redirect me to old.com/hxxp://addon.com and shows that the page can't be found....</p>
  
  <p>Can somone help me how to solve this problem? If I remove the redirect code from .htacess, my addon2.com works just fine...</p>
  
  <p>Thanks
  Andi</p>
  
  <h1>edited</h1>
  
  <p>i added this on my .htaccess</p>
  
  <blockquote>
    <p>RewriteEngine on</p>
    
    <p>RewriteCond %{HTTP_HOST} !^(www.)?addon2.com</p>
    
    <p>RewriteRule (.*) hxxp://new.com/$1 [R=301,L]</p>
  </blockquote>
  
  <p>and it seems like it works :)</p>