Cannot Change Root Directory for Main Domain - 82.0.16
Hello all.
I am migrating a site to CentOS 7, Cpanel 82.0.16. To set up the site, I am wanting my public_html to be set up like so:
Where the directory root of the main domain is set for ./public_html/example.com. In order to accomplish this, I have enacted the changes shared in this thread: The page isn"t redirecting properly Firefox has detected that the server is redirecting the request for this address in a way that will never complete. This problem can sometimes be caused by disabling or refusing to accept cookies.
To attempt to rectify a possible issue with the domain not using the www. prefix, I have committed the following code to an .htaccess file in ./public_html
Ideally, one would be able to adjust the directory root natively in WHM or CPanel, but I have not found a method to do that. Thank you for any help you'll be able to give.
public_html
-> 1sub.example.com
-> 2sub.example.com
-> example.comWhere the directory root of the main domain is set for ./public_html/example.com. In order to accomplish this, I have enacted the changes shared in this thread: The page isn"t redirecting properly Firefox has detected that the server is redirecting the request for this address in a way that will never complete. This problem can sometimes be caused by disabling or refusing to accept cookies.
To attempt to rectify a possible issue with the domain not using the www. prefix, I have committed the following code to an .htaccess file in ./public_html
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^www\.(.*) [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
order allow,deny
allow from allIdeally, one would be able to adjust the directory root natively in WHM or CPanel, but I have not found a method to do that. Thank you for any help you'll be able to give.
Please sign in to leave a comment.
Comments
0 comments