Does the url of a php bilingual website Affect seo?

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.