Okay. bjan, I have created local install on my server with which I was able to test your particular set-up. I have found and corrected several bugs and now everything is functioning as it should be.
Since this update contains several additional bug fixes not directly related to the subdirectory issue, I recommend it for everyone. However, I’m not going to submit it to the MODx repository yet, because I am still only part way through implementing my main goal for this version of having a translatable module interface.
Please grab
version 1.0.4 alpha RC 2 from my sever. When updating, please don’t install straight over your existing version, since I have moved some files around. Instead, please rename your existing yams directory, copy over the new yams directory and then copy your yams.config.inc.php file from the old yams directory to the new one. This process is described in more detail in the Readme.txt.
bjan, your .htaccess file should now contain:
#Options +FollowSymlinks
RewriteEngine On
RewriteBase /modx
# Fix Apache internal dummy connections from breaking [(site_url)] cache
# PMS: Don't know about this one since I don't use it...
RewriteCond %{HTTP_USER_AGENT} ^.*internal\ dummy\ connection.*$ [NC]
RewriteRule .* - [F,L]
# The Friendly URLs part
RewriteCond ${REQUEST_FILENAME} !-f
RewriteCond ${REQUEST_FILENAME} !-d
RewriteRule ^en/(.*)$ index.php?q=$1&yams_lang=en [L,QSA]
RewriteCond ${REQUEST_FILENAME} !-f
RewriteCond ${REQUEST_FILENAME} !-d
RewriteRule ^de/(.*)$ index.php?q=$1&yams_lang=de [L,QSA]
RewriteCond ${REQUEST_FILENAME} !-f
RewriteCond ${REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]