Forum Moderators: phranque
The new domain should be forwarded to a directory at your current host the real path of your new domain will be like www.a.com/x but the users of your new domain will never see that but will see www.x.com or www.x.com/x .
The new domain should be forwarded to a directory at your current host the real path of your new domain will be like www.a.com/x but the users of your new domain will never see that but will see www.x.com or www.x.com/x .
I have subdomains that are reached that way but not the actual domain names.
I think it really does depend on your hosting company and how they have their servers set up.
robert
I actually just set up something exactly like what you're looking for. There may be several ways to accomplish this, but the method I used involved add-on domains. My host is a *nix host running CPanel, so the method described here may be specific to that particular environment.
In this scenario, I had www.domaina.com as my primary domain for my hosting account. I then registered www.domainb.com and pointed it to the same DNS servers as www.domaina.com. Through CPanel, I then set up an add-on domain, which created a new directory in my web root (/domainb) and created a sub-domain as well (domainb.domaina.com). Once DNS resolved, I could reach the new domain by either going to www.domainb.com or using the sub-domain route (domainb.domaina.com). In addition, I can also have email accounts for the new domain or sub-domain (i.e. name@domainb.com or name@domainb.domaina.com).
All-in-all, a pretty slick solution, if your web host supports it. And, as long as all your add-on domains aren't hogging system resources, you should be fine. If these domains look to generate a lot of traffic, or if you see yourself doing something like this with a bunch of domains, you may want to step up to a reseller's account, which will allow for a lot of domains, and more server resources.