eZ Community » Forums » Developer » Broken switchlanguage function...
expandshrink

Broken switchlanguage function (legacy ezpublish)

Broken switchlanguage function (legacy ezpublish)

Monday 22 August 2016 12:54:55 pm - 1 reply

Hi to all,

I'm facing a configuration problem I don't understand :

In my production website, language doesn't want to switch if there are no siteaccess in the URL.

If I tries to switch from the url http://mysite.com/ nothing happend

If I tries to switch from the url http://mysite.com/site2_FR or http://mysite.com/site2_UK it's ok.

I have to say the switch works nice in my development web site and the site.ini.append.php are strictly the same (for the SiteAccessSettings and RegionalSettings section) from dev to prod website.

Regarding this problem, my apache's logs are:

DEV website :

...... "GET /switchlanguage/to/site2_uk HTTP/1.1" 302 180
...... "GET /site2_uk HTTP/1.1" 200 38071

PROD website :

...... "GET /switchlanguage/to/site2_uk HTTP/1.1" 302 129
...... "GET / HTTP/1.1" 200 6569

Any help will be nice from you.

Alex.

Modified on Tuesday 23 August 2016 4:29:04 pm by Peretjatko Alexandre

Tuesday 23 August 2016 4:26:31 pm

More informations from my configuration :

settings/override/override.ini.append.php

[SiteSettings]
DefaultAccess=site1
SiteList[]=site1
SiteList[]=site1_admin
SiteList[]=site2
SiteList[]=site2_uk
SiteList[]=site2_admin
 
[SiteAccessSettings]
ForceVirtualHost=true
RemoveSiteAccessIfDefaultAccess=enabled
AvailableSiteAccessList[]=site1
AvailableSiteAccessList[]=site1_admin
AvailableSiteAccessList[]=site2
AvailableSiteAccessList[]=site2_uk
AvailableSiteAccessList[]=site2_admin
 
MatchOrder=uri;host
 
# ----- TOUTES LES URI POSSIBLES
URIMatchType=map
URIMatchMapItems[]=site2;site2
URIMatchMapItems[]=site2_admin;site2_admin
URIMatchMapItems[]=site2_uk;site2_uk
 
# ------ TOUT LES HOSTS POSSIBLES
HostMatchType=map
HostMatchMapItems[]
HostMatchMapItems[]=www.site1.com;site1
HostMatchMapItems[]=www.site2.eu;site2
expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from