How to change my document root folder using an .htaccess file?
Print
0
By default your main website is loaded from the public_html folder of your account. The public_html directory is also called web root folder or document root folder.
If your would like to keep your site's files in a sub folder of the public_html, and do not want the sub folder to appear as a part of the URL to your website, you can mask the sub folder from the URL by placing the following directives in the .htaccess file inside the public_html folder: