I created a subdomain as described here:
http://rtfm.modx.com/display/revolution20/Creating+a+Subdomain+from+a+Folder+using+Virtual+Hosts
Unfortunately it didn´t work. The problem is when typing in:
sub.domain.com/file.html
this will result in being redirected to
www.domain.com/file.html
Does anybody have an idea what I maybe have done wrong?
Here a maybe important additional information concerning the point 'Creating the Virtual Host':
Instead of editing Apache's httpd.conf file I just created a subdomain in our server-backend which provide that all requests to sub.domain.com are routed to the folder /modx/sub which is the folder created as described in the tutorial mentioned above for the subdomain and contains the files index.php, .htaccess and config.core.php.
Second: In the file config.core.php there was no line like this:
define('MODX_CORE_PATH', dirname(__FILE__) . '/core/');
or
define('MODX_CORE_PATH', dirname(dirname(__FILE__)) . '/core/');
Similar lines I only found in the index.html