-
- 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???
-
- 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
-
- 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
-
- 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