We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 5340
    • 1,624 Posts
    this is the one I use. It should work for you. It might be a server setup

    # For full documentation and other suggested options, please see
    # http://svn.modxcms.com/docs/display/MODx096/Friendly+URL+Solutions
    # including for unexpected logouts in multi-server/cloud environments
    # and especially for the first three commented out rules
    
    #php_flag register_globals Off
    AddDefaultCharset utf-8
    php_value date.timezone America/New_York
    
    Options +FollowSymlinks
    RewriteEngine On
    RewriteBase /
    
    # Fix Apache internal dummy connections from breaking [(site_url)] cache
    RewriteCond %{HTTP_USER_AGENT} ^.*internal\ dummy\ connection.*$ [NC]
    RewriteRule .* - [F,L]
    
    
    RewriteCond %{HTTP_HOST} ^www.YOURSITE.com [NC]
    RewriteRule ^(.*)$ http://YOURSITE.com/$1 [L,R=301]
    
    
    # Exclude /assets and /manager directories from rewrite rules
    RewriteRule ^(manager|assets) - [L]
    
    # For Friendly URLs
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php?q=$1 [L,QSA,NC]
    
    # Reduce server overhead by enabling output compression if supported.
    php_flag zlib.output_compression On
    php_value zlib.output_compression_level 5
    
    # Fix screen flicker for images in Internet Explorer
    ExpiresActive On
    ExpiresByType image/gif A2592000
    ExpiresByType image/jpeg A2592000
    ExpiresByType image/png A2592000
    BrowserMatch "MSIE" brokenvary=1
    BrowserMatch "Mozilla/4.[0-9]{2}" brokenvary=1
    BrowserMatch "Opera" !brokenvary
    SetEnvIf brokenvary 1 force-no-vary
    
    
    php_flag magic_quotes_gpc Off
    
      • 36695
      • 47 Posts
      That’s the same rewrite stuff as I have. When you say "server setup", what sort of thing should I be starting to look for? Any general pointers would be great.
        • 5340
        • 1,624 Posts
        Windows/Linux
        PHP Version
        Apache Version
        etc

        I don’t know exactly what you should be looking for, but maybe a modx guru can point you in the right direction.