As PlatinumServerM told you in a previous post above, you can makeHi,
I've been seeing a lot of this question in the thread but didn't find any answer.
I want to change the document root of our primary domain from public_html to public/html/new_folder.
Is there any way I can do this in Cpanel?
# cd /home/(username) # mkdir ./public # mkdir ./public/html # ln -s ./public_html ./public/html/new_folder
Not unreasonably, my ISP doesn't give me access to httpd.conf. What is less reasonable on their part is that they are unwilling to make the one-line change for me.If you really must change it, then you can manually change it by editing the virtualhost of that domain in the httpd.conf and change the document root path there.
The reason is that I have developed a new version of my site in /public_html/mynewsite. My ISP are unwilling to change httpd.conf for me. Instead, they recommend I use rewrite rules in /public_html/.htaccess to change requests for www.mysite.com to be www.mysite.com/mynewsite. This achieves the redirect but, of course, includes "mynewsite" in the resultant URLs seen by the visitor. Not what I want.<snip>Now I don't know if you are requesting this change because you do not want "public_html" to appear in the URL or some other reason. <snip>
Unless the server administrator hardened down the security on their serverThe symlink idea would be nice, assuming I have permission. But doesn't that require that the ISP have enabled FollowSymLinks in Apache?
|Thread starter||Similar threads||Forum||Replies||Date|
|M||change default document root prefix ?||Account Administration||2|
|L||Change Document root directory||Account Administration||4|
|C||DocumentRoot changed for new accounts||Account Administration||3|
|S||Document Root Change||Account Administration||1|
|E||Change the way Primary Domain Document Root works||Account Administration||2|