
Indeed. The second example would be correct without mod_alias. But with mod_alias
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
If the web root were /usr/local/www/modx/ then you would prepend /modx/ to the RewriteRule target...
RewriteRule ^(.*)$ /modx/index.php?q=$1 [L,QSA]
[NOTE: I corrected the reversed information as reported by sottwell, so it should be indicated properly now, even though my ignorance of how mod_alias works didn’t help much here...]

- anyone else have a solution for 1and 1 servers? there tech suppport are a bunch of twits.
#php_flag zlib.output_compression On
#php_value zlib.output_compression_level 5
# Rewrite directives here for SEF (Search Engine Friendly) URLs
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# If your MODx installation is in a subdirectory, change the following line to match the physical
# path to the "root" of the site as follows:
# RewriteRule ^(.*)$ /path/to/subdirectory/index.php?q=$1 [L,QSA]
RewriteRule ^(.*)$ /index.php?q=$1 [L,QSA]
This discussion is closed to further replies. Keep calm and carry on.