Knowledgebase: cPanel/WHM/Linux
Change main domain to be in a sub-directory under public_html
Posted by - NA - on 27 February 2010 10:15 PM
|
|
Related documents: Q: Is it possible to have the contents of your main domain in a sub-directory, just like Addon Domains? A: You would contact support and ask them to change your Main Domain name to: USERNAME.SERVER.arvixe.com Where USERNAME is your username and SERVER is your server name. Now you can add your domain as an Addon Domain under public_html. Since asking us to make this change can cause you to need to re-add your Addon Domains and recreate them, an easier way is to just addon the secondary domain with the path /domain.com instead of /public_html/domain.com (that way, it does not sit under the main domain's directory. | |
|
Comments (7)
Tyler
14 June 2012 05:05 PM
I'm actually tempted to do this as even when having a second domain as /add-on-domain.com it can still be accessed as add-on-domain.main-domain.com. I do get that this can be redirected to add-on-domain.com, which is pretty close ideal unless you are using wildcard ssl certificates.
Would doing this mean that you're using an extra one of your add-on domains as your main domain is included?
Would doing this mean that you're using an extra one of your add-on domains as your main domain is included?
Michael Carr
10 July 2012 01:35 PM
Yes, doing this will require the use of one extra add-on domain. The syntax for accessing add-on domains will be the same, only the address for the main web root will change to USERNAME.SERVER.arvixe.com
Stacey Love
19 April 2015 12:42 PM
How has this worked for people. I'm wondering if it would solve my problem of my main site being a subdomain instead of the secondary one as such.
Ryan C
27 April 2015 09:45 PM
This has worked/resolved many peoples issues who wish to organize all of their domains into folders other than directly into public_html. I encourage you to contact our support team to get this changed made if this interests you. Any email accounts currently created under the account's main domain now, will change... so please be aware of that. You may need to delete/recreate email accounts.
Andoni I
04 May 2015 02:21 PM
Just to be sure, "this will require the use of one extra add-on domain" means that I have to pay one extra domain to do this? Specifically, do I need to pay two extra domains (apart from the included one in my plan) to have two websites side by side, each with its own domain? Thanks.
Ryan C
11 May 2015 11:22 PM
We can assign a "fake domain" to your accounts main domain to avoid the need for you to purchase two domains. In addition, if you are on our personal class hosting, we can increase your addon domain account by 1 in order to give you the ability to have your domain under a /public_html/yourdomain.com setup. If you are on our personal class PRO plan, you already have unlimited addon domains.
Andoni I
04 May 2015 02:23 PM
Just to be sure, "this will require the use of one extra add-on domain" means that I have to pay one extra domain to do this? Specifically, do I need to pay two extra domains (apart from the included one in my plan) to have two websites side by side, each with its own domain? Thanks.