Friday 17 April 2009 4:46:17 am
Sometime we have a ez publish install with multiple sites and multiple languages, for example:
example.com/spanish
example.com/german example.com/english
domain.com/es
domain.com/de domain.com/en because we have only one ez publish install we need to mix HOST (example.com & domain.com) and URI (spanish, german, etc). In a lot of topics in the forum the answer is that it's not possible to mix HOST and URI. So HOST should be used for all siteaccesses (for example with subdomains): spanish.example.com, german.example.com, ..., es.domain.com, ... Thanks to Tanta (Spain) we could configure a installation mixing host an uri. This is the site.ini file:
[SiteAccessSettings]
ForceVirtualHost=true
CheckValidity=false
AvailableSiteAccessList[]=example_spanish
AvailableSiteAccessList[]=example_german
AvailableSiteAccessList[]=example_english
AvailableSiteAccessList[]=domain_es
AvailableSiteAccessList[]=domain_de
AvailableSiteAccessList[]=domain_en
MatchOrder=uri;host
URIMatchType=map
URIMatchMapItems[]=spanish;example_spanish
URIMatchMapItems[]=german;example_german
URIMatchMapItems[]=english;example_english
URIMatchMapItems[]=es;domain_es
URIMatchMapItems[]=de;domain_de
URIMatchMapItems[]=en;domain_en
HostMatchMapItems[]=www.example.com;example_spanish
HostMatchMapItems[]=www.domain.com;example_es
This configuration for mixing URI & HOST works in our situation under ezp 4.1 Issues/situations we have found: a.) URI access affects all HOST siteaccesses, for example in our example: "spanish" siteaccess would be shown in example.com & domain.com b.) URI overrides url_alias, for example if we have an article named "spanish" in the root of a site the root page of the URI siteaccess is shown (not the article content)
eZ Partner in Madrid (Spain)
Web: http://www.atela.net/
|