We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 17076
    • 9 Posts
    Hi All (first post shocked),

    I wonder if you can help. I’m looking to use modx evo and YAMS for a multilingual website.

    I installed modx, and checked that when i navigated to http://localhost/cms/modx/ it displayed the content of the homepage.

    I then installed YAMS following the instructions.

    The resource that had my homepage content now has tabs for each language, perfect!!

    When I navigate to http://localhost/cms/modx/ the htaccess (taken from the YAMS module server config tab) alters the url to be http://localhost/cms/modx/en/home.html

    However I get a page not found ?!

    Any suggestions as to where I would start to look to resolve this issue?
      • 18373 ☆ A M B ☆
      • 3,141 Posts
      Did you put [tt]cms/modx[/tt] as the site root in the plugin configuration when you copied the .htaccess?


      BTW: Please do not cross post on the forums... one topic is enough! Besides that, welcome to the forum smiley
        Mark Hamstra • Developer spending his days working on Premium Extras and a MODX Site Dashboard with the ability to remotely upgrade MODX and extras to make the MODX world a little better.

        Tweet me @mark_hamstra, check my infrequent blog at markhamstra.com, my slightly more frequent ramblings at MODX.today or see code at Github.
        • 17076
        • 9 Posts
        Sorry for the cross post, I realised after posting here that there was a group/folder specifically for plugins and so posted there.

        Yes,I’ve set the YAMS subdirectory to cms/modx.

        I’m now thinking it’s the htaccess file that is not being read by apache.. Do you know how I can ensure that apache is picking it up? I’ve altered the httpd.conf and set allowoveride to all?

        Here is my .htaccess file if that helps?

        # Friendly URLs - 2 lines below this is as a
        RewriteEngine On
        RewriteBase /cms/modx/

        # 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]
          • 17076
          • 9 Posts
          Got this one sorted....

          Apache was not parsing the .htaccess file sad - User error