eZ Community » Forums » Setup & design » A singolar need of multiple...
expandshrink

A singolar need of multiple websites/languages and one eZ installation

A singolar need of multiple websites/languages and one eZ installation

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

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 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 2:50:57 pm

I don't, sorry.

I want to host a lot of websites and I'm limited to only one hostname per website.

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

Monday 25 October 2010 10:06:45 am

Yes! That's exactly what I needed!

Thank You!

Monday 25 October 2010 4:33:21 pm

Excellent!

Monday 25 October 2010 7:15:07 pm

Yes! That's exactly what I needed!

Thank You!

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 !

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from