[TYPO3] Redirect based on country

Sune Brodersen typo3 at sunebrodersen.dk
Sun Feb 12 16:46:58 CET 2006


Hi,

I have a site with 2 different languages. Now i want to redirect the 
user to a prefered language based on either the language of the browser 
or the IP he is coming from. Any ides on doing this?

Fx if i have an english browser then i want to show index.php?id=1&L=0 
and if i use a danish browser i want to show index.php?id=1&L=1

The other solution could be checking the IP and some external list of 
IP's that shows what country the user is coming from. Again if he comes 
from denmark then show index.php?id=1&L=1 any other country then show 
index.php?id=1&L=0

Is there any better way to determin which country he is coming from?

Regards
Sune



More information about the TYPO3-english mailing list