We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 32982
    • 674 Posts
    i organice modx instalations in main folders for example for language es,it,fr....
    i want to delete this from the url for example www.mysite.com/es/bienvenidos be www.mysite.com/bienvenidos
    and www.mysite.com/en/welcome to www.mysite.com/welcome
    is posibol whith touchinh htacces i test some thigs but all give a server errors
    hi
      Jabiertxof (formerly XYZVISUAL)
      My bussines: http://marker.es
      https://www.youtube.com/user/jabiertxof/videos
      • 30223
      • 1,010 Posts
      Not sure what you want the result to be but here’s a rewrite rule that will rewrite the specified language directories into a query string instead. (assuming you have friendly urls on)

      RewriteEngine On
      RewriteBase /
      RewriteRule ^(en|es|it|fr)/(.*)$ index.php?q=$2&lang=$1 [L,QSA]
      #existing rules
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]


      added: The result for mysite.com/en/index.htm would be mysite.com/index.php?q=index.htm&lang=en
        • 32982
        • 674 Posts
        i couldent setup it give me a infinite loop but the directoryes es it en ... are created into modx arent phisical and the only thing i want to remove is es/ it/ en/... for example mysite.com/en/welcome goto mysite.com/welcome.
        thanks very much for the response.
          Jabiertxof (formerly XYZVISUAL)
          My bussines: http://marker.es
          https://www.youtube.com/user/jabiertxof/videos