网页301重定向自动跳转代码

博客之家 发布于 阅读:35430 好文分享

本次为大家带来的是网页301重定向自动跳转代码大全



小编为大家带来了几种的网页自动跳转代码,如下:



301重定向跳转代码:



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

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



网页直接跳转代码:



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

<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>



第二种网页直接跳转代码:

<html><head><title>稍候。。。</title></head>
<body>
<script language='javascript'>document.location = '这里改成你要跳转的网址'</script>
</body>
</html>