Forum Moderators: phranque

Message Too Old, No Replies

Redirect of main domain affects subdomains and add-on domains

how can it be fixed?

         

Shannelle

9:37 pm on Feb 24, 2007 (gmt 0)

10+ Year Member



I have a CPanel-based webhosting account that has 2 domain names. DomainA.com is the domain first associated with the webhosting account and DomainB.com is the add-on domain I got sometime later on.

I redirected the "/" of [DomainA.com...] to [DomainA.com...] however whenever i type DomainB.com it gets redirected to [DomainA.com...] too. I replaced the redirection from "/" to "/index.php" but same problem persist. Then later on, I found out that if I create subdomains too, same thing happens. I looked at .htaccess and googled for RedirectMatch but I couldn't make it work. I also tried to the Rewrite but it doesn't work too. Been already wracking the web for over a couple of hours already for this but I'm still stuck. I hope someone can advice me on this one.

By the way, the htaccess file has this content:

# -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.DomainA.com
AuthUserFile /home/user/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/user/public_html/_vti_pvt/service.grp

RedirectMatch temp ^/$ [DomainA.com...]

jdMorgan

2:14 am on Feb 25, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi Shannelle, and welcome to WebmasterWorld!

This recent thread [webmasterworld.com] may be of some assistance to you.

Jim