Wednesday 20 October 2010 9:03:55 am - 8 replies
I've read carefully the eZ documentation, some tutorials and many forum threads on the subject "multiple websites with one eZ installation", but none has given me a perfect solution for my needs:
I need two (or more) websites with different hostnames and multiple languages, eg.:
- website1_hostname/en
- website1_hostname/it
- website2_hostname/en
- website2_hostname/fr
And I want only one hostname for administrating all my websites, eg.:
- admin_hostname/website1
- admin_hostname/website2
There's a (clean) solution using a single eZ installation?
I'm using eZ 4.4.0 on a LAMP server.
Thanks for any answer that help in some way.
Wednesday 20 October 2010 12:06:22 pm
Thursday 21 October 2010 12:12:47 pm
Yes, I've read it. But this article don't resolve completely my needs.
It seem's that the site.ini settings available for mapping hostname/URI with siteaccesses aren't enough.
Modified on Thursday 21 October 2010 12:13:20 pm by Mauro Innocenti
Friday 22 October 2010 12:45:49 pm
Instead of using URI for language can't you use subdomain instead?
www.website1.com => goes to default language, siteaccess website1_en
fr.website1.com => french website 1, website1_fr
it.website2.com => italien website 2, website2_it
en.website2.com => english website 2, website2_en
Friday 22 October 2010 4:00:50 pm
I think what you want is the MatchOrder=host_uri which was added to 4.4 so it's not really well-documented yet.
You can use something like this:
MatchOrder=host_uri
HostUriMatchMapItems[]
HostUriMatchMapItems[]=website1.tld;en;website1_en
HostUriMatchMapItems[]=website1.tld;fr;website1_fr
HostUriMatchMapItems[]=website1.tld;it;website1_it
HostUriMatchMapItems[]=website2.tld;en;website2_en
HostUriMatchMapItems[]=website2.tld;fr;website2_fr
HostUriMatchMapItems[]=website2.tld;it;website2_it
You must be logged in to post messages in this topic!