I want to use a subfolder in public_html as my root folder, is that possible?
Is your website in a subfolder, for example public_html/site, and do you want visitors to see it at www.yourdomain.nl without /site at the end? You can set that up with a .htaccess file in the public_html folder.
The rule in .htaccess
Put this in public_html/.htaccess and replace site with the name of your folder:
RewriteEngine On
RewriteBase /
# alles wat niet al in /site staat, naar /site sturen
RewriteCond %{REQUEST_URI} !^/site/
RewriteRule ^(.*)$ site/$1 [L]
To visitors, it will then look as if there is no subfolder. A .htaccess file is hidden; to find out how to see and edit it, read Showing and editing hidden files such as .htaccess.
$live_site in configuration.php in Joomla). It's usually easier to install the website directly in public_html.Prefer a truly different folder?
You can't change the folder of your main domain yourself, but we can set it up for you. Read Changing the document root of a domain. For a subdomain, you can choose the folder yourself, using Custom under Document Root.
Detailed explanation with screenshots: A different folder for your website (document root) in the DirectAdmin guide.
