码迷,mamicode.com
首页 > Web开发 > 详细

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

时间:2019-11-24 12:12:04      阅读:155      评论:0      收藏:0      [点我收藏+]

标签:res   空白页   ref   oca   head   跳转   fresh   直接   zh-cn   

本次为大家带来的是网页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>

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

标签:res   空白页   ref   oca   head   跳转   fresh   直接   zh-cn   

原文地址:https://www.cnblogs.com/shuaqb/p/11921445.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!