How to Redirect Visitors Based on Their Browser Language

Country and browser language are not the same
A visitor in India may prefer English, Hindi or another language. Someone in Germany may prefer English. Country targeting guesses where a person is; language targeting reads the language preference sent by the browser.
Use language routing when the page language matters more than the visitor's location.
Prepare a page for each language
Create the pages before adding the redirect. For example, your site may have /en/, /hi/ and /fr/ versions. Check that each page has the same key details, current prices and working contact links.
Do not send a visitor to a half-translated page. If a page is not ready, send that visitor to your default language instead.
Choose the language rules
Add a destination for each language you support. Browser language settings can contain more than one preference, such as English first and Hindi second. Your routing tool may use the first supported language it finds. Check how the current product handles a visitor whose first choice is not available.
Set one default page for everyone else. It is better to show a complete English page than send someone to a missing translation.
Keep a language switcher on the page
A browser setting can be old or shared with another person. A visitor may also understand a language that is not set as their first browser preference. Keep a visible language switcher so they can change the page themselves.
Test from browsers with different language settings
Change your browser's preferred language and open the link again. Test at least one language you support and one you do not. Also check that the page does not keep sending a visitor back and forth between languages.
Set language destinations for your short link
With Recut language targeting, you can send visitors to the page that matches a supported browser language and choose a default destination for other visitors. Keep a language switcher on each page for anyone who wants to change it. See the Recut URL Shortener.
Frequently asked questions
How does a website know which language to show?
A site can read the preferred language sent by the browser, often through the Accept-Language request header.
Is browser language the same as country?
No. A visitor in India may use English, and someone in another country may also prefer English.
What happens if I do not have the visitor’s language?
Set a default page, then let visitors choose another language from the site.
Will language targeting translate my page?
No. You need to create and maintain each translated page yourself.
Gaurav Kumar
AuthorWriting about link infrastructure, branded domains, retargeting pixels, and URL shortener analytics.