Sunday 13 January 2008 12:37:02 am - 4 replies
Hi, according to this page:
http://ez.no/doc/ez_publish/techn...lti_language_support_for_url_aliases
I'd like to use urls of this form:
http://www.example.com/en/Company http://www.example.com/en/Compagnie
How can I do this with ez publish?
I tried to set HostMatchMapItems in ./settings/override/site.ini.append.php like this but I didn't succeed:
HostMatchMapItems[] HostMatchMapItems[]=admin.example.com;ezwebin_site_admin HostMatchMapItems[]=www.example.com;ezwebin_site_user HostMatchMapItems[]=www.example.com/de;ger HostMatchMapItems[]=www.example.com/en;eng
I'm using version 4.0 under centos 5.1 (managed by ispconfig).
Thanks - Michael
Modified on Sunday 13 January 2008 12:37:33 am by Michael Kress
Sunday 13 January 2008 7:32:32 am
Hello Michael,
I don't think 'www.example.com/de' can be considered a host. Also, with the exception of some advanced matching techniques, you would need a clear siteaccess separation:
http://www.example.com/Company http://www.example.de/Compagnie
or
http://www.example.com/en/Company http://www.example.com/de/Compagnie
Then, each siteaccess would need a different default language set, to choose proper translation.
http://ez.no/doc/ez_publish/techn...on_files/site_ini/siteaccesssettings
Hope this helps a bit.
Sunday 13 January 2008 12:52:03 pm
Could you/someone give me a concrete example, please? I _was_ playing with the SiteAccessSettings section, but unfortunately I ended up in a kernel error (view doesn't exist). I also recreated all the aliases before by issuing
php bin/php/updateniceurls.php
Sunday 13 January 2008 4:59:54 pm
It seems to me you might actually be looking for the uri method rather than host. If I were trying to do it, here's what I'd do to use:
http://www.example.com/en/Company
http://www.example.com/en/Compagnie
1. In the [SiteAccessSettings] of settings/override/site.ini.append.php,
MatchOrder=uri
(and comment out (with #) your HostMatchMapItems)
2. In the [RegionalSettings] of each settings/siteaccess/your_site_accesses, set these in the correct order (varies by site access):
SiteLanguageList[]
SiteLanguageList[]=eng-GB
SiteLanguageList[]=fre-FR
etc.--whatever your languages are
3. Rename your site access from eng to en if that's the way you'd like it displayed, and similarly for any other public siteaccesses.
4. Set up your translations for each page.
Monday 28 December 2009 3:15:02 pm
I want to do is have the same URLs in all the different languages, basically turn off multilanguage URL aliases, or (to put it another way) force all siteaccesses to show the URL aliases for the main language. Is there a setting somewhere that will do this? Thanks!
You must be logged in to post messages in this topic!