Share » Forums » Setup & design » Mixing uri and host access types for...

Mixing uri and host access types for multilingual sites

Mixing uri and host access types for multilingual sites

Thursday 04 August 2005 8:17:44 am - 1 reply

Modified on Thursday 04 August 2005 9:06:06 am by Xavier Dutoit

Author Message

David Eriksson

Friday 05 August 2005 12:31:01 am

We have a couple of sites, all running on the same installation, one of which has what you want. I'd assume it'd be possible to make an English siteaccess to one of the other urls as well, but it's not something that we need. The guy here who did it is away for a week, but here's our override/site.ini:

AvailableSiteAccessList[]=site1
AvailableSiteAccessList[]=site1_en
AvailableSiteAccessList[]=site2
AvailableSiteAccessList[]=site3
AvailableSiteAccessList[]=site4
MatchOrder=host;uri
HostMatchMapItems[]=admin.site.se;admin
HostMatchMapItems[]=www.site2.se;site2
HostMatchMapItems[]=www.site3.se;site3
HostMatchMapItems[]=www.site4.se;site4

Bad thing about this is: site1 becomes www.site1.se/index.php/site1, just like the English becomes www.site1.se/index.php/site1_en. We'd prefer not having to use /site1 for the non-English site, but you can't get everything. :)

I would think the magic lies in this row:

MatchOrder=host;uri

Good luck!

/David

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

36 542 Users on board!

Forums menu