页面跳转部分写法html,js,php写法

1、html跳转:
< meta http-equiv="refresh" content="5; url=http://www.yong3g.com/" / >

2、js跳转:
window.location.href = "http://www.yong3g.com";

3、php跳转:
1).htaccess
redirect 301 /old.htm http://www.yong3g.com

RewriteEngine On
RewriteRule ^(.*)$ http://www.yong3g.com/ [R=301,L]

2)header
<?php
header("HTTP/1.1 301 Moved Permanently");
header("Location: http://www.yong3g.com/");
exit();
?>

4、asp跳转:
<%
Response.Status="301 Moved Permanently"
Response.AddHeader "Location","http://www.yong3g.com/"
Response.End
%>

5、JSP跳转:
1)response.sendRedirect("http://www.yong3g.com/");

2)response.setHeader("Location","http://www.yong3g.com/");

3)< jsp:forward page="/" / >