How do I point my domain name to a specific subfolder?

Category: Website

Kevin.Raihala
Asked:
2013-04-25 9:09 am EST

Hits: 31,340
I have more than one web site and like to keep them all separated in separate directories in the root of my account. How do I point mydomain.com to a folder below my home directory?

You must login before you can ask a follow up question.

You must login before you can submit an answer.

OTHER ANSWERS

0

Scott
Staff
20,113 Points
2013-04-25 9:22 am EST
Hello Kevin.Raihala,

When you want to have more than one independent website within your hosting account, you will want to create addon domains. These addon domains will assign a subfolder, typically with the same name as the domain, under the public_html directory. The website files for that domain will be kept there.

For example, if I want to add domainb.com as an addon, its folder will appear on the server as public_html/domainb.com. This is true for all addon domains by default.

If you have already created addon domains, you can always alter their document root as you see fit.

Your main domain, (the primary one assigned to your account) does not have this ability by default. Its root folder is simply the public_html folder itself. If you wish to have the primary domain have its own folder, then our support team will need to make a change known as a 'document root change' . As noted in the previous link:
"changing a primary domain doc root is NEVER RECOMMENDED by InMotion Hosting. cPanel restores packages based on default settings and miss document root changes. So if the account is moved, the accounts with the doc root change may break."

If you wish to have a document root change performed, however, you will need to contact our Live Support department at support@inmotionhosting.com with that request. Be sure to validate your account with either the last 4 digits of the credit card on file, or the current Account Management Panel (AMP) password.

Best Regards,
Scott M

You must login before you can post a comment about this answer.

Like this Question?

Related Articles

It looks like there are no related articles.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question

Need more Help?

Search

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!