说明

当一个站点的域名或者目录发生变化时,如果想让百度快速收录变化之后的新链接、用以替换之前的旧链接,那么您就需要使用百度搜索资源平台的网站改版工具来提交您的改版关系,加速百度对已收录链接的新旧替换

改版规则中的新旧链接一定要使用301的方式进行跳转

实现方式

301重定向跳转代码

1
2
3
4
5
6
7
8
<html>
<head>
<title>稍候。。。</title>
</head>
<body>
<script language="javascript">document.location="这里改成你要跳转的网址"</script>
</body>
</html>

直接写JavaScript在html里面好像也可以

1
<script language="javascript">document.location.href=("要跳转的新链接");</script>

网页直接跳转代码

在html页头部分插入以下代码即可

1
<meta http-equiv="refresh" content="0.01; url=这里改成你要跳转的网址">

创建一个index.html空白页面然后把下面的代码复制进去即可

1
2
3
4
5
6
7
8
9
10
<html>
<head>
<meta http-equiv="Content-Language" content="zh-CN">
<meta HTTP-EQUIV="Content-Type" CONTENT="text/html" charset="gb2312">
<meta http-equiv="refresh" content="0.01; url=这里改成你要跳转的网址">
<title></title>
</head>
<body>
</body>
</html>