We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 10076
    • 1,024 Posts
    HI,

    I have tried once or twice to get this going. I am trying to setup tri-lingual site but want to finisch locally before going live. Yams or Modx keeps "ignoring" the rewrite base it set in htaccess. I tried using a different root folder, but would need a / in there to get "basedir/en basedir/nl basedir/fa"?

    here s my htaccess

    # Friendly URLs
    RewriteEngine On
    RewriteBase /basedir/
    
    # Fix Apache internal dummy connections from breaking [(site_url)] cache
    RewriteCond %{HTTP_USER_AGENT} ^.*internal\ dummy\ connection.*$ [NC]
    RewriteRule .* - [F,L]
    
    # Exclude /assets and /manager directories from rewrite rules
    RewriteRule ^(manager|assets) - [L]
    
    # Redirect from mydomain.com/rootname to mydomain.com/rootname/
    RewriteRule ^en$ en/ [R=301,L]
    
    # The Friendly URLs part
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^en/(.*)$ index.php?q=$1 [L,QSA]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]


    Any solution for this?
      • 22851
      • 805 Posts
      You’ll need to put basedir in Modules>YAMS>Other Params>URL formatting>MODx Subdirectory too.
      Cheers.
        YAMS: Yet Another Multilingual Solution for MODx
        YAMS Forums | Latest: YAMS 1.1.9 | YAMS Documentation
        Please consider donating if you appreciate the time and effort spent developing and supporting YAMS.
        • 10076
        • 1,024 Posts
        Thanks loads, your solution is really great.
        Woukd be good to have that ready for Revo too.

        cheers, Frank.