Redirect main domain without affecting addon domains

Discussion in 'Site & Server Administration' started by tigersoft, Nov 3, 2006.

  1. #1
    Hi,
    I have a Cpanel hosting. My www.mainsite.com is redirecting to www.mainsite.com/forum. The case is i have also added some addon domains. When i type in other www.addondomain.com and it is also automatically being redirected to www.mainsite.com/forum.

    Here is .htaccess code, that is shown in www.mainsite.com

    
    # -FrontPage- 
    
    IndexIgnore .htaccess */.?* *~ *# */HEADER* */README* */_vti* 
    
    <Limit GET POST> 
    order deny,allow 
    deny from all 
    allow from all 
    </Limit> 
    <Limit PUT DELETE> 
    order deny,allow 
    deny from all 
    </Limit> 
    AuthName www.mainsite.com 
    AuthUserFile /home/mainsite/public_html/_vti_pvt/service.pwd 
    AuthGroupFile /home/mainsite/public_html/_vti_pvt/service.grp 
    
    RedirectMatch temp ^/$ http://www.mainsite.com/forum 
    
    Code (markup):
    Impossible to do some changes and get www.addondomain.com to be redirected?

    Thanks,
     
    tigersoft, Nov 3, 2006 IP