Forums / Setup & design / A singolar need of multiple websites/languages and one eZ installation
Mauro Innocenti
Wednesday 20 October 2010 12:03:55 am
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.
Quoc Huy Nguyen Dinh
Wednesday 20 October 2010 3:06:22 am
Have you read that one?
http://share.ez.no/learn/ez-publish/lots-of-websites-one-ez-publish-installation-adding-siteaccesses-in-ez-publish
Thursday 21 October 2010 3:12:47 am
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.
Friday 22 October 2010 3:45:49 am
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 5:50:57 am
I don't, sorry.
I want to host a lot of websites and I'm limited to only one hostname per website.
Steven E. Bailey
Friday 22 October 2010 7:00:50 am
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
Certified eZPublish developer http://ez.no/certification/verify/396111 Available for ezpublish troubleshooting, hosting and custom extension development: http://www.leidentech.com
Monday 25 October 2010 1:06:45 am
Yes! That's exactly what I needed!
Thank You!
Monday 25 October 2010 7:33:21 am
Excellent!
Nicolas Pastorino
Monday 25 October 2010 10:15:07 am
Hi Mauro,
Nice to see you got the relevant answer. Thanks to all guys. You may now want to mark the topic as solved (click the small ticker, right next to the topic's title).
Cheers all !
-- Nicolas Pastorino Director Community - eZ Member of the Community Project Board eZ Publish Community on twitter: http://twitter.com/ezcommunity t : http://twitter.com/jeanvoye G+ : http://plus.tl/jeanvoye