義烏網(wǎng)站建設(shè)什么是301轉(zhuǎn)向及ASP301,PHP301示例

2012-10-08 瀏覽:150

義烏網(wǎng)站建設(shè)講解301轉(zhuǎn)向(或叫301重定向,301跳轉(zhuǎn))是用戶或蜘蛛向網(wǎng)站服務(wù)器發(fā)出訪問請求時(shí),服務(wù)器返回的HTTP數(shù)據(jù)流中頭(HEADER)部份狀態(tài)碼的一種,表示本網(wǎng)址永久性轉(zhuǎn)移到另一個(gè)地址.
義烏做網(wǎng)站301轉(zhuǎn)向ASP代碼:
<%@ language=VBScript %>
<%Response.Status="301 moved Permanently" Response.AddHeader "Location","http://yonggai.cn"
%>
義烏網(wǎng)站建設(shè)301轉(zhuǎn)向PHP代碼:
header("http/1.1 301 Moved Permanently");
header("Location:http://yonggai.cn");
?>

上一條: 義烏網(wǎng)站建設(shè)分析對手是否進(jìn)行網(wǎng)站優(yōu)化的幾個(gè)要點(diǎn)?
下一條: 義烏網(wǎng)站建設(shè)產(chǎn)生復(fù)制內(nèi)容的原因

新聞資訊

相關(guān)資訊