" As one of the leaders in the provision of web presence and network
solutions, we can offer our clients the most competitive prices available. "
Fri Jun 14 4:34:44 CEST 2024
  Search :   
TECHNICAL FAQ Technical FAQ Automatic language detection
NetCulture network information
The NetCulture speed commitment
Domain names explained
Secure transaction accounts (SSL)
FrontPage extensions
Administration of your account
Configuring POP accounts
The web language 'html'
Web page forms
Analysis of your web site
Page counters
Password protection
Automatic language detection
Using CGI
Using PHP for easy CGI
On-Line databases using MySQL
Mail handling on your account
Mailing lists (Majordomo)

The servers at NetCulture can automatically detect which language the browser program would like to download pages and present them to the user.

Each time a user asks for a page it also sends with it a preferred language. This means that if your site uses multiple languages then the presentation of different home page can be made dependant on the user.

This option is not configured as default but can easily be added to your site.

Normally, the first page of your site would be named 'index.html' or 'index.htm'. When a user simply types the domain name in their browser, the 'index' page is presented. To enable the automatic loading of language specific pages you need to do the following :

Step 1 :
Create a file in the directory where the 'index' page resides called '.htaccess'. The content of this file should be as follows :

Options Multiviews

This tells the server to enable the language detection module for that directory.

Step 2 :
Create 'index' files for each different language. The file names are important as they are searched for by the server. The names should be in the form :

index.html.fr - The French 'index' page
index.html.de - The German 'index' page
index.html.en - The English 'index' page

Make sure that you do not have any other files called 'index…..' as this will override the automatic selection.

Now when a user connects with a French browser the 'index.html.fr' is presented, a German browser will receive the 'index.html.de' page etc.

It is also possible for a user to manually configure their browser to 'prefer' a different language, for example an English version of Netscape to ask for French documents.

Problem Checklist

  1. Always ensure that you have a page 'index.html.en'. Many users may have English browsers and this should be treated as the default page.
  2. Make sure the file names are correct as shown above.
  3. Check that the file '.htaccess' is in the correct directory where your index pages are located.
Important Information :

This functionality does not operate with secure servers (SSL) using 'https'.

Site français
Contact us  |  Home
© 1996-2024 NetCulture.   All rights reserved.