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...)
|