Home > Backend Development > PHP Tutorial > php中英双语网站,url雷同,会影响seo吗

php中英双语网站,url雷同,会影响seo吗

WBOY
Release: 2016-06-13 11:56:42
Original
1389 people have browsed it

php中英双语网站,url相同,会影响seo吗?
就是用cookie结合客户端侦测的办法

选择不同的数据表和语言包老切换语言

这样一来   中文版的关于和英文版的about   url地址都是  xxx.com/about/  这样会影响SEO吗?


$last_lang = $_COOKIE['language'];
if($last_lang){
$lang = $last_lang;
}else{  //自动侦测客户端语言
$viewer= strtolower(substr($_SERVER['HTTP_ACCEPT_LANGUAGE'],0,2));
if($viewer == 'zh'){
$lang = 'cn';
}else{
$lang = 'en';
}
}
------解决方案--------------------
参考一下:
https://support.google.com/webmasters/answer/189077?hl=zh-Hans

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template