View Full Version : using an add-on domain
d3dtn01
05-17-2008, 12:32 PM
I just purchased an add-on domain. I can't figure out how this works. I have a subdirectory of public_html for my new domain. So I put an index.html page there. Well, it shows up at: www.primary_domain.com/sub_domain/index.html but it doesn't show up at: www.sub_domain.com.
How do I get things to show up at: www.sub_domain.com?
Does this make sense?
shadmego
05-17-2008, 12:40 PM
a subdomain is not exactly the same thing as an addon domain.
An addon domain is a domain name that acts like its own primary domain. The difference between an addon and primary domain is that the addon domain resides in a folder underneath the primary domains folder (public_html). An addon domain also can be accessed through a browser by using the www.addondomain.com (http://www.addondomain.com) name.
A subdomain is different in that it does not "stand on its own". What that means is, as the name implies, it is dependent on the primary domain. Subdomains also reside in folders underneath the primary domain (public_html), but they must be accessed as part of the primary domain by using the http://subdomain.primarydomain.com address.
The question I have is are you talking about an addon domain or a subdomain? You said you purchased the domain name, which indicates an addon domain, but you are referring to it as a subdomain, which is technically incorrect.
The public_html directory is not a subdirectory. It is the primary directory. If you are talking about an addon domain, then the directory for that domain should be it's name, meaning the domain name will be served to the browser from public_html/addondomain.
It might also take a couple of days for the DNS information to propogate the web before www.addondomain.com (http://www.addondomain.com) is available.
This is the best I can do given the information you provided. Perhaps some clarification from you as to what you are talking about might help.
~regards!
d3dtn01
05-18-2008, 11:28 AM
Thanks for the reply, shadmego. It was very helpful. Indeed, I can see how I confused you. I purchased a new domain name and set it up as an add-on domain. Sorry for confusing you with the 'sub-domain' stuff.
I think that you answered my problems with the bit about the DNS servers. I just tried the new domain name and indeed it now loads the file 'public_html/addon_domain/index.html'. I guess that I was just impatient.
But this brings up another question for me: how do I stop 'www.primarydomain.com/addon_domain/' from also displaying this index file? As it stands both 'www.addon_domain.com' and 'www.primary_domain.com/addon_domain/' display the same html file.
nerdykit
05-18-2008, 12:10 PM
But this brings up another question for me: how do I stop 'www.primarydomain.com/addon_domain/' from also displaying this index file? As it stands both 'www.addon_domain.com' and 'www.primary_domain.com/addon_domain/' display the same html file.
You use a .htaccess file in the add-on domain folder to redirect anyone who enters the URL www.primarydomain.com/addon_domain/ and rewrite that request so that it comes out as www.addon_domain.com
I'm sure you can even trap someone who comes in with www.primarydomain.com/addon_domain/ and redirect them to an information page that informs them of the correct URL to use. I'm not a .htaccess wizard so I'll leave the 'how' to someone else to answer.
EasyCall
05-19-2008, 01:12 AM
You don't have to know exactly how to edit the .htaccess file - just go to Redirects in cpanel and enter the information to redirect yourdomain.com/newdomain to www.newdomain.com - that will write the line of code in your .htaccess file for you.
rrandlr
05-22-2008, 06:14 AM
Hi,
I seem to be having the same problem. I bought a domain name in March and changed it from a parked domain to an addon domain in April. As of today it still only shows up when entered as addondomain.primarydomain.com. If I Google just the addon name with no .com it points to page 21 of my primary:confused: ? I have checked CPanel hosting and my second (addon) is showing a hosting status of Addon. Any help getting this corrected would be appreciated.
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.