InMotion Hosting Support Center

How can i assign a sub directory to Main domain in Cpanel

Category: Cpanel

n/a Points
2014-06-02 11:29 am EST

Hits: 56
i want to know that how to assign a directory to main domain .
by default the public_html
directory is assigned for the main domain .
is it possible to assign a sub directory to it like public_html/new .
If its a safe process and will not effect the other functions .
I read about it that its not safe

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

You must login before you can submit an answer.



43,761 Points
2014-06-02 11:39 am EST

What you are describing is known as the document root. While for addon domains there a a definite document root like public_html/ If your primary domain name is and you want to have the document root set to public_html/ it can certainly be done. There are a couple of caveats in doing that, however. Check out our article on changing the primary domain document root for more information.

Kindest Regards,
Scott M

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

Like this Question?

Forum Login

You are NOT logged in. You can still browse our Support Center.

To participate within our Community Support Forum:

Need more Help?

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:
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!