Addon domain not affect main domain .htaccess

Discussion in 'Apache' started by xfiver, Dec 9, 2008.

  1. #1
    Hi guys,

    I have my main domain hosted (e.g. domain1.com) and I registered another addon domain (domain2.com) which is hosted on domain1.com/domain2/. They are both wordpress blogs.

    Now, whenever I go to the addon domain, www.domain2.com, I automatically get redirected to the main domain (www.domain1.com).

    Here's the .htaccess of domain1.com:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress
    Code (markup):
    How do I add rewrite rules so that whenever I go to the addon domain I see www.domain2.com in the URL bar and I actually see the site.

    Apparantly cpanel won't do this for me :(
     
    xfiver, Dec 9, 2008 IP