跳轉程式碼
Apache:
Options +FollowSymLinks RewriteEngine on RewriteRule (.*)
https://www.wukong.com/$1
HTML:
<meta http-equiv="refresh" content="0; url=https://www.wukong.com/">
JavaScript:
<script language="javascript"> top.location="https://www.wukong.com/"; </script>
ASP:
<% Response.AddHeader "Location","https://www.wukong.com/" Response.End %>
ASP.NET:
<%@ Page Language="C#" %><script runat="server">protected void Page_Load(object sender, EventArgs e){HttpContext.Current.Response.AddHeader("Location", https://www.wukong.com/);}</script>
PHP:
<?php header("Location: https://www.wukong.com/");exit();?>
Perl:
$q = new CGI; print $q->redirect("https://www.wukong.com/");
Pyton:
from django import http def view(request): return http.HttpResponseRedirect("https://www.wukong.com/")
看網站程式選擇程式碼
跳轉程式碼
Apache:
Options +FollowSymLinks RewriteEngine on RewriteRule (.*)
https://www.wukong.com/$1
HTML:
<meta http-equiv="refresh" content="0; url=https://www.wukong.com/">
JavaScript:
<script language="javascript"> top.location="https://www.wukong.com/"; </script>
ASP:
<% Response.AddHeader "Location","https://www.wukong.com/" Response.End %>
ASP.NET:
<%@ Page Language="C#" %><script runat="server">protected void Page_Load(object sender, EventArgs e){HttpContext.Current.Response.AddHeader("Location", https://www.wukong.com/);}</script>
PHP:
<?php header("Location: https://www.wukong.com/");exit();?>
Perl:
$q = new CGI; print $q->redirect("https://www.wukong.com/");
Pyton:
from django import http def view(request): return http.HttpResponseRedirect("https://www.wukong.com/")
看網站程式選擇程式碼