When creating a codomain (subdomain) and forward it to an internal folder the address bar of the browser changes displaying the forwarded folder.
e.g. if you set the forward for sub.domain.tld to /sub/ you'll get domain.tld/sub/
There are to ways to keep sub.domain.tld.
1. Option
Change the code of ISPConfig like described here:
Co/sub-domains without rewritten URLs
2. Option
- Leave the forward value empty
- Add the following into the Apache Directives field:
Code:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^sub.domain.tld [NC]
RewriteRule ^/(.*)$ /sub/$1 [L]