我用下面的链接标签表示多种语言,有两个问题
http://domain.com/?hl=en或http://domain.com/?hl=es中添加http://domain.com/?hl=enhttp://domain.com/?hl=en中添加<html lang='en'>,在http://domain.com/?hl=es中添加<html lang='es'>吗?<head>
<!-- … -->
<link href="http://domain.com/" hreflang="x-default" rel="alternate">
<link href="http://domain.com/?hl=en" hreflang="en" rel="alternate">
<link href="http://domain.com/?hl=es" hreflang="es" rel="alternate">
</head>发布于 2015-05-19 08:23:11
两者都不能使用:
<link href="http://domain.com/" rel="canonical"> in http://domain.com/
<link href="http://domain.com/?hl=en" rel="canonical"> in http://domain.com/?hl=en
<link href="http://domain.com/?hl=es" rel="canonical"> in http://domain.com/?hl=es您可以将其放在http://domain.com/?hl=en中,但不能放在http://domain.com/?hl=es中。
https://stackoverflow.com/questions/30312413
复制相似问题