Does the url of a php bilingual website Affect seo? The cookie is used in combination with the client detection method to select different data tables and language packs for the old switching language. This way, & nbsp; Chinese version and English version of the about & nbsp; & nbsp; url addresses are all & nbsp; xxx. comabout & nbsp; will this affect SEO? $ Last_l does the same url affect seo for php bilingual Chinese and English websites?
Is to use cookies in combination with the client for detection.
Select different data tables and language packs for the old switch language
In this way, the Chinese version and the English version of the about url are both xxx.com/about/. Will this affect SEO?
$ Last_lang = $ _ COOKIE ['language'];
If ($ last_lang ){
$ Lang = $ last_lang;
} Else {// automatically detects the client language
$ Viewer = strtolower (substr ($ _ SERVER ['http _ ACCEPT_LANGUAGE ));
If ($ viewer = 'zh '){
$ Lang = 'cn ';
} Else {
$ Lang = 'en ';
}
}
------ Solution --------------------
Refer:
Https://support.google.com/webmasters/answer/189077? Hl = zh-Hans