host SA, but i18n screws up using URI SA

Author Message

Olaf Fichtner

Monday 07 June 2010 10:01:33 pm

I just modified a site from URI siteaccess to host-based siteaccess. I did so by making a dummy host SA install and comparing the site.ini.append.php settings. Installation is on a shared hosting environment within a subdirectory, like http://example.com/ezp/. I set the site up to be accessed via http://ezp.example.com, which itself works fine.

I do however need multiple languages, and as soon as I click on English for example, the site redirects to something like this:

http://example.com/ezp/index.php/eng/index.php/Welcome-to-the Frontpage

Which of course does not exist. When I did the dummy host SA install, I noticed that there were two settings in site.ini that were incorrect: SiteURL was still example.com/ezp and the LoginForm redirect to the admin panel also added some URI chaos. I fixed them manually and everything seemed fine - until I tried languages. Unfortunately, I can not find where languages could screw up like this. site.ini has no URI relicts and i18n.ini does not seem to contain anything related. Forum posts mentioning host SA and multilang seem to run into problems different from mine, so I'm at a loss here...

Here is an excerpt from site.ini.append.php:

"

[SiteSettings]
DefaultAccess=eng
SiteList[]=ezflow_site_clean
SiteList[]=eng
SiteList[]=ger
SiteList[]=chi
SiteList[]=jpn
SiteList[]=ezflow_site_clean_admin
SiteList[]=iphone
RootNodeDepth=1
SiteName=xxx
MetaDataArray[author]=xxx
MetaDataArray[copyright]=xxx
MetaDataArray[description]=xxx
MetaDataArray[keywords]=xxx
SiteURL=ezp.example.com/index.php
IndexPage=/content/view/full/75/
DefaultPage=/content/view/full/2/
[SiteAccessSettings]
CheckValidity=false
AvailableSiteAccessList[]
AvailableSiteAccessList[]=ezflow_site_clean_user
AvailableSiteAccessList[]=eng
AvailableSiteAccessList[]=ger
AvailableSiteAccessList[]=chi
AvailableSiteAccessList[]=jpn
AvailableSiteAccessList[]=ezflow_site_clean_admin
AvailableSiteAccessList[]=iphone
MatchOrder=host
HostMatchMapItems[]
HostMatchMapItems[]=eza.example.com;ezflow_site_clean_admin
HostMatchMapItems[]=ezp.example.com;ezflow_site_clean_user
HostMatchMapItems[]=eng.1;eng
HostMatchMapItems[]=ger.1;ger
HostMatchMapItems[]=chi.1;chi
HostMatchMapItems[]=jpn.1;jpn

"

Btw, could it be that the installation process is a bit buggy here? Things worked fine with URI SA and multilang, but on the dummy site with host SA, clicking on English results in something like

http://eng.1/ezp2/index.php/index.php

So, even a vanilla host SA + i18n install does not seem to work - so I got nothing to compare to...

Any ideas what could have gone wrong? (and more importantly: how to fix it...)

Olaf Fichtner

Friday 11 June 2010 9:55:34 am

I found the culprit, but language switching still does not work. The installer creates incorrect settings when host site access is chosen during installation. In each language site access, the site.ini.append.php contains a SiteURL setting that is incorrect, for example "eng.1/folder/where/ezP/is/installed/index.php" for English.

Commenting this out leads to a working URL after clicking on a language link, but no language switch occurs. I have read several forum posts dealing with host SA and multilanguage, but so far I could not find any that would give detailed enough and working directions, so I am really open to suggestions...

Olaf Fichtner

Saturday 12 June 2010 8:22:44 am

OK, problem solved. The solution is here:

http://share.ez.no/forums/setup-design/howto-host-site-access-multilanguage-the-ez-way

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.