[Xitami] content languages
Michael S. Kazarin
xitami@lists.xitami.org
Sat, 15 Dec 2001 03:39:00 +0300
Hi!
I'm running 2.5b5 on w2ksp2
I want to use a feature of Xitami which allows to provide different content
(actually serve different files) depending on accept-language request header
sent by user-agent (browser).
So I put, for example, index.html_en and index.html_ru (or index.html.en and
index.html.ru) into root. When browser receives any of these files it
suggests to save it or open. On the other hand .htm, .html and .shtml files
are served fine.
Does this mean that I have to add mime types for all the possible extensions
(index.htm_en, index.html_en, index.shtml_en, index.htm_ru, index.html_ru,
index.shtml_ru and what not), or I better be using '.lang' extension instead
of '.*htm*_lang' and then add mime for '.lang' extension only - will it
work this way?
And now a stupid question. If this is supposed to be a feature, why then the
server can't detect '_lang' at the end of the file and then send in response
header a mime type of the corresponding file, which extension appears after
dot and prior to '_lang'? Or am I doing smth wrong or missing smth? Help,
please.
Mike.