ASP:
Response.Status="301 Moved Permanently"
Response.AddHeader "Location","http://www.zzyolo.com/"
Response.End
PHP:
header("HTTP/1.1 301 Moved Permanently");
header("Location:http://www.zzyolo.com/");
exit();
JSP:
<%
response.setStatus(301);
response.setHeader( "Location", "http://www.zzyolo.com/" );
response.setHeader( "Connection", "close" );
%>
ASP.Net:
<script runat="server">
private void Page_Load(object sender, System.EventArgs e)
{
Response.Status = "301 Moved Permanently";
Response.AddHeader("Location","http://www.zzyolo.com");
}
</script>
php:
<?php
$go=$_GET["go"];//获取跳转页面链接部分,如"thread-112-1.html",又如forum.php?fid=32等
header("HTTP/1.1 301 Moved Permanently");//发送301状态,之后的所有跳转均为301
header("location:http://www.zzyolo.com/".$go);//根据go参数跳转到对应页面
exit;
?>
高端网站建设价格套餐:
500元成品模板网站套餐
1000元基础型网站套餐
1800元标准定制设计套餐
2800元精美定制设计套餐
3800-8000元商务型套餐
行业门户型套餐
其它定制套餐
文章由重庆一佰互联高端网站建设http://www.rzxsoft.cn编辑整理,转载请注明出处