G
G
go202015-05-06 20:51:17
PHP
go20, 2015-05-06 20:51:17

Determination of the user's language and subsequent redirection - how?

The site needs to implement a page with PHP and/or JavaScript code, which, when visited, automatically determines the user's language (Russian or English), and then redirects to the appropriate section. That is: site.com/index.php -> site.com/ru/index.php or site.com/index.php -> site.com/en/index.php.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Natalia Bazenova, 2015-05-06
@logiciel

$_SERVER['HTTP_ACCEPT_LANGUAGE']

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question