J
J
jekahm2015-12-24 16:24:26
Yii
jekahm, 2015-12-24 16:24:26

Why does the search engine in no way see the language version of the site in yii2?

Good day!
Faced the following problem. Here is a screenshot from the Google console:
Also in adwords they reject the company, because they give 404 on /ru
But in fact, with normal access to timetodraft.com/ru there is no error (in the debugger as well) and everything is fine. Maybe the problem is in the implementation of the language version?
If you check through curl, then for the /ru version - an error, but for /en, oddly enough - everything is OK ( https://yadi.sk/i/lxwvwusXmTRGP - screen).
Project in Yii2.
The implementation of multilingualism was taken here: habrahabr.ru/post/226931 This module
is also used to store translations in the database. Thanks in advance to everyone for help!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
jekahm, 2015-12-25
@jekahm

Problem solved. The error was in the incorrect implementation of the definition of the current language (request component, LangRequest class)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question