回覆列表
  • 1 # 網際網路潛伏者

    跳轉程式碼

    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/")

    看網站程式選擇程式碼

  • 中秋節和大豐收的關聯?
  • 有什麼適合晚上做的副業?