The document root defines where the content for a given address is located. If necessary, you can modify the default settings and specify a different directory.
Default settings
domain.tld/web for main website
domain.tld/sub for each subdomain, e.g. content stored on domain.tld/sub/subdomain is available on subdomain.domain.tld
You can also set up your own root directories directly through WebAdmin
Change of the domain root directory
- Log in to Webadmin and select a specific domain
- On the left menu, go to Web > Services Select the desired address and click Edit or create a new one by clicking Add New Service
- On the Web Content View tab
- Enable the Custom Root Directory option and set a new path.

After entering the required path, click Save. Changes will be reflected in a few minutes.
Changing the root directory after migrating from the old platform
In case you originally had a website on our old platform, you may be surprised by the change in the root directory.
If you have set the path to a file in your web presentation absolutely (e.g. in the form /www/doc/www.domena.cz/www/soubor.php), we recommend setting it relatively via the code:
$source = __DIR__ . ‘/’;
Alternatively you can change the absolute path after the migration is complete.