Web Hosting Talk







View Full Version : addon same second-level domain?


bleenzorb
04-07-2007, 08:46 AM
This is probably off-topic (not really programming related) but I didn't know what other WHT forum to put it in.

I own two second-level domains with different top-level names, for example:

mydomain.org
mydomain.com

I want to host them both on my anhosting (midphase) account. Using cpanel I can addon one, but when I addon the other, cpanel gives me:

Sorry, the subdomain mydomain cannot be removed because it is linked to the addon domain mydomain.org. You must first remove the addon domain.

Obviously, its trying to internally use the same subdomain for both addons. Am I suppose to enter something special in cpanel's "Username/directory/subdomain Name:" prompt or what?

Oceanworld
04-07-2007, 08:58 AM
If you want both domain to point to the same site, it's better to park them instead of using addon domain.

bleenzorb
04-07-2007, 09:08 AM
Yeah, that's what I've got now just so users see something useful. But I still want to point them to two different directories.

Oceanworld
04-07-2007, 11:13 AM
Just don't name the directory mydomain.

bleenzorb
04-07-2007, 11:14 PM
I found out what my problem was. cpanel, for some kooky reason, completely ignores, in the directory/subdomain text that the user enters, any underscore and any text following an underscore!

I happened to be entering a directory/subdomain text which was the same as an existing subdomain name but followed by an underscore and more letters. For example, I already had a directory/subdomain called "mydomain" for use by my "mydomain.org" addon, and I tried to create a new directory/subdomain called "mydomain_com" for use by my "mydomain.com" addon. cpanel then promptly ignored the "_com"part of the text I entered and assumed I really meant "mydomain"!

weird.