addon doman refreshes to respective subdomain of main account

fuzzymonkey

Well-Known Member
Jun 11, 2004
61
0
156
I have a client who has added a domain to his account as an addon domain. Then he created a subdomain of the addon domain. Then he's refreshing that subdomain back to a subfolder of the addon domain. So he's got:

maindomain.com
addondomain.com added onto it
sub.addondomain.com should refresh to addondomain.com/subfolder/somefile.html

but its not. Its refreshing to addondomain.maindomain.com/subfolder/somefile.html. Why? I've already checked .htaccess and httpd.conf and both are setup correctly.

Thanks for helping.
 

fuzzymonkey

Well-Known Member
Jun 11, 2004
61
0
156
Thanks for replying. I added that line to the addon domain's entry and restarted apache, but it didnt' change the behavior. Did I put it in the wrong spot? That directive already existed in the main domain's entry.
 

Murtaza_t

Well-Known Member
Jan 24, 2005
476
0
166
Earth
cPanel Access Level
Website Owner
Well, you need that entry in the VirtualHost of addon domain only. And this has always worked, may be it is something else in your case. Sorry but cannot comment any thing from here.
 

SetLar8

Well-Known Member
Mar 5, 2004
60
0
156
Hi,

im having the same problem:

i have an addon domain and have added it to domain.com with the folder (addon):

domain.com (main domain)
addon.com (addon domain)

When i try to browse "addon.com" i get http://domain.com/addon

Cheers.