Answer the question
In order to leave comments, you need to log in
How to hide root directory in cpanel?
I use hosting with cpanel. There is a parked domain and a number of additional domains. When I navigate through a parked domain, I get the contents of the public_html directory. So far, I solved the problem with the .htaccess file with the contents of Options All -Indexes. Is there a more reasonable (correct) solution?
Answer the question
In order to leave comments, you need to log in
Configure additional domains correctly so that their root directories are in the right place:
Main:
/user/public_html/
Additional:
/user/domains/domain1/public_html/
/user/domains/domain2/public_html/
/user/domains/domainX/public_html/
Then they will not intersect and there will be no need to build a Chinese wall.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question