Unicode on webpages      contents


How to redirect a customer to a proper language page using Apache webserver?

Put into server-wide configuration file httpd.conf or into local .htaccess directives like these:

AddLanguage en .en
AddLanguage fr .fr
AddLanguage de .de
<Directory /usr/local/www/data>
Options +MultiViews
...

Replace index.html with these files:

index.html.en
index.html.fr
index.html.de
index.html.html

index.html.html is symbolic link or just a copy of document that is used in situation when client browser don't want any of presented languages:

~/www/data $ ln -s index.html.en index.html.html

Now a client accessing top page or index.html will get a page according to the language preference selected in his browser.



  Valid XHTML 1.0!