1.HTML方式(可隐藏跳转后网址)
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>红枫资源站</title>
<frameset framespacing="0" border="0" rows="0" frameborder="0">
<frame name="main" src="https://gm.tiansj.net" scrolling="auto" noresize></frameset>
</head>
<body></body>
</html>
2.HTML
<meta http-equiv="refresh" content="0; url=https://gm.tiansj.net">
3.PHP
<?php
header("HTTP/1.1 301 Moved Permanently");
header("Location: https://gm.tiansj.net");
exit();
?>
4.JavaScript
<script language="javascript">
top.location='https://gm.tiansj.net';
</script>
5.Apache(301)
Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*) https://gm.tiansj.net$1 [R=301,L]
6.ASP
<%
Response.Status="301 Moved Permanently"
Response.AddHeader "Location","https://gm.tiansj.net"
Response.End
%>
7.ASP.NET(301)
<%@ Page Language="C#" %>
<script runat="server">
protected void Page_Load(object sender, EventArgs e)
{
HttpContext.Current.Response.StatusCode = 301;
HttpContext.Current.Response.Status = "301 Moved Permanently";
HttpContext.Current.Response.AddHeader("Location", https://gm.tiansj.net);
}
</script>
8.Perl
$q = new CGI;
print $q->redirect("https://gm.tiansj.net");
9.Pyton
from django import http
def view(request):
return http.HttpResponseRedirect('https://gm.tiansj.net')
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。
评论(0)