将用户重定向到移动网站的SEO问题

时间:2013-01-19 10:47:15

标签: html redirect seo

将使用以下代码,给我一些SEO问题?我开始使用时谷歌排名下降了。

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="refresh" content="0;document.location" />
</head>
<body>
<p></p>
<!--?xml version="1.0" encoding="UTF-8"?-->
<p><link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" /></p>
<title></title>
<script language="javascript" type="text/javascript">// <![CDATA[
if (screen.width <= 699) {
document.location = "http://mobilesite";
}

else{ 
       document.location.href = "http://desktopsite"
}
// ]]></script>
</body>

</html>

1 个答案:

答案 0 :(得分:1)

我认为你需要首先学习HTML结构。

favicon include和title应始终位于<head>收容中。

不确定为什么你们两个都有XML声明。

您也可以使用HTML5文档类型<!doctype html>

关于搜索引擎优化问题。内容为王。搜索引擎主要依赖于页面中包含的内容。现在我不确定你的JS会如何影响这个,因为抓取页面的蜘蛛和机器人不运行JavaScript(我可能错了,如果是这样的话,希望有人会纠正我。)