kayyy

Active Member
Mar 12, 2014
32
0
6
cPanel Access Level
DataCenter Provider
Hey,

i`ve a maindomain and a addon domain.

My folders are:

- public_html
-> maindomain
-> addon domain

How can i say redirect the maindomain to the folder "maindomain" ?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,908
2,216
463
Hello :)

You can modify the document root for a domain name by editing the "documentroot" entry in the appropriate cPanel user data file:

Code:
/var/cpanel/userdata/$username/$domain.com
Then, rebuild the Apache configuration file via:

Code:
/scripts/rebuildhttpdconf
Thank you.