The web root or document root directory is the starting directory of your domain. The data of your website is stored in this directory.
Windows Webserver:
Under Windows WebHostings the starting directory is: /
The absolute path to your document root is: d:\www\<username> (e.g. d:\www\www250)
If you access the server via FTP, you are immediately in the directory where the data can be published.
Cloud Linux Webserver:
On our CloudLinux WebHostings the starting directory is: /www
The absolute path to your document root is: /data/www/<username>/www (e.g. /data/www/www250/www)
If you use a WebHosting on our CloudLinux server environment, you can publish your web data to the /www directory.
Display document root with PHP:
Create a PHP file with the following content:
<?php
echo $_SERVER["DOCUMENT_ROOT"]
?>
Save the file under a name of your choice (e.g. root.php) and upload the file via FTP to the directory you want to read.
Domain Mappings:
If you adjust the path to your main domain via System Configurator or add further domain mappings and forward to a subfolder, the starting directory changes accordingly.
For example, if a subdomain is created with the name store.yourdomain.ch, which points to the /shop directory, this directory is the starting directory and the data must be stored there.
On a Windows hosting the starting directory is accordingly: /shop
The absolute path is: d:\www\<username>\shop
On a CloudLinux hosting the starting directory is accordingly: /www/shop
The absolute path is: /data/www/<username>/www/shop
More information about setting up domain mappings can be found in this article.