Forum Moderators: phranque

Message Too Old, No Replies

Redirect main domain without affecting addon domains

Redirect main domain without affecting addon domains using cpanel

         

tigersoft

6:38 pm on Nov 3, 2006 (gmt 0)

10+ Year Member



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 ^/$ [mainsite.com...]

Impossible to do some changes and get www.addondomain.com to be redirected?

Thanks,