U
U
user88892020-02-02 17:25:05
Internationalization and localization
user8889, 2020-02-02 17:25:05

What are the ways to redirect a user from the main page to /ru or /en?

Good afternoon!

The bottom line is this: there is a website with a Russian and English version. When entering the main page, the user's location is determined by geo-ip, and a 302 redirect is issued to the site.ru/ru or site.ru/en page . Everything works fine, but google pagespeed complains about an extra redirect, so the site speed score is lower than it could be.

Objective: to increase the score in pagespeed, without bothering users with unnecessary actions

. At the moment, I see 2 ways to solve the problem:

1. Remove the redirect; it turns out on one url there will be also English. version, and Russian. As far as I understand, this in its own way will have a bad effect on SEO and positions in search engines.
2. Remove the redirect, display one of the languages ​​by default, the user will switch to the desired one himself, save the choice of language in cookies and redirect later, if necessary. In this case, the main page will always be without redirects. The downside of this method is that some extra gestures are required from the user.

Which option is correct?
Or maybe I don’t understand something, and is there some simple way to redirect the user to the desired page, while not requiring him to select the language?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Page-Audit.ru, 2020-02-02
@PageAuditRU

  1. Score at pagespeed.
  2. Redirect according to Accept-Language.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question