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

    I am running a multi-lingual website (Irish & English), built in MODx Evolution 1.0.13, running on IIS on a Windows Server 2003 box, with the YAMS version 1.1.9.

    Up until recently - all worked fine but I have noticed a problem with the homepage whereby the language doesn't toggle between the 2 languages. All other inner pages
    toggle between both languages without any problem.

    I find that if I use the IP address for the homepage instead of it's domain name that the language toggles as it should.

    I have checked the php log and modx log and haven't found any errors.

    Any ideas???
      • 9995
      • 1,613 Posts
      still having the problem?

      did you check your .htaccess and if the homepage template uses yams (yams module settings)?
      also try a different browser, could be browsercache problem.

        Evolution user, I like the back-end speed and simplicity smiley
        • 43567
        • 14 Posts
        Yes, still having the problem. This worked originally and the .htaccess file hasn't changed. The homepage template is using yams. I have tried on different browsers and still the same. One thing that I have noticed is when I type in the full url - http://mywebsite/en/index.html or http://mywebsite/ie/index.html - it remains on the same language but when I type in http://mywebsite/en/ and http://mywebsite/ie/ it toggles between the languages as it should? So it doesn't like the index.html for some reason. Any ideas?
          • 9995
          • 1,613 Posts
          did you try to change the alias for the different languages of the homepage?
          I always set these to unique in the yams settings (better for seo)

          maybe re-set the homepage template to Yams to no and then yes again?
          maybe some weird cache problem I'm just guessing here
          maybe play with your friendly url config settings?
          maybe you can add this in .htaccess and check if it works?

          # Rewrite domain.com -> www.domain.com -- used with SEO Strict URLs plugin
          RewriteCond %{HTTP_HOST} .
          RewriteCond %{HTTP_HOST} !^www\.site\.com [NC]
          RewriteRule (.*) http://www.site.com/$1 [R=301,L]
            Evolution user, I like the back-end speed and simplicity smiley
            • 9995
            • 1,613 Posts
            maybe you can always do it like this?

            [*id:is=`1`:then=`<ul><li><a href="/en/">EN</a></li><li><a href="/ie/">IE</a></li></ul>`:else=`{{yams-lang-code-in-a-chunk}}`*]



              Evolution user, I like the back-end speed and simplicity smiley