[Zope] i18n site and search robots
Dieter Maurer
dieter@handshake.de
Tue, 22 Jul 2003 23:35:46 +0200
Gilles Lenfant wrote at 2003-7-22 15:50 +0200:
> This is not strictly speaking a Zope problem, but certainly lots amond you
> faced and fixed this.
> I made a i18n site with Localizer that runs fairly good, including its i18n
> search engine.
> But what about external searche engine robots (google, infossek...)
> How to "tell" them that they may browse and index the pages in french,
> english, spanish (...), changing their http header "Accept-Language" ?
Not sure, whether this is the most elegant way, but:
You could have "language access folders", e.g. "en", "fr", "de".
Requests that go through these folders select the corresponding
language. A ("SiteAccess") AccessRule in the folders ensures
that "Accept-Language" is correctly set in "REQUEST.environ"
and that even "absolute_url" generates the correct language
specific URLs.
Dieter