Changing the working directory using .htaccess
I run TYPO3 with a normal site and a subdomain in the same TYPO3 installation. On the normal site, automatically a mobile device is detected and then rerouted to the subdomain.
In my subdomain the visitor is redirected to the correct page in the TYPO3 tree, using following .htaccess file.

    Options +FollowSymlinks
    RewriteEngine On
    RewriteCond %{http_host} ^m.mysite.com [NC]
    RewriteRule ^(.*)$ http://m.mysite.com/index.php?id=74 [L]

What happens is that the visitor ends up in an endless loop where he is sent to the TYPO3 site and then to the subdomain and back again.

To get this working, I also need to change the working directory to www.mysite.com (I also have another provider where I can make these changes using a cpanel, and that site runs perfectly). I have been looking everywhere and have tried almost anything, but I simply do not have enough knowledge to change the working directory.

So what code should I use to change the working directory?
Changing the working directory using .htaccess
===

I run TYPO3 with a normal site and a subdomain in the same TYPO3 installation. On the normal site, automatically a mobile device is detected and then rerouted to the subdomain.
In my subdomain the visitor is redirected to the correct page in the TYPO3 tree, using following .htaccess file.

    Options +FollowSymlinks
    RewriteEngine On
    RewriteCond %{http_host} ^m.mysite.com [NC]
    RewriteRule ^(.*)$ http://m.mysite.com/index.php?id=74 [L]

What happens is that the visitor ends up in an endless loop where he is sent to the TYPO3 site and then to the subdomain and back again.

To get this working, I also need to change the working directory to www.mysite.com (I also have another provider where I can make these changes using a cpanel, and that site runs perfectly). I have been looking everywhere and have tried almost anything, but I simply do not have enough knowledge to change the working directory.

So what code should I use to change the working directory?