云南網(wǎng)站建設(shè)創(chuàng)新企業(yè) 昆明多彩網(wǎng)絡(luò)公司

在線qq:540105663

什么是301永久定向?

來(lái)源:昆明多彩網(wǎng)絡(luò)公司 日期:2010-10-31 閱讀: 發(fā)表評(píng)論

301永久定向可以將一個(gè)域名重新轉(zhuǎn)到一個(gè)新的網(wǎng)站上,同時(shí)可以將改域名的權(quán)重和seo都轉(zhuǎn)移到新的域名上,可謂是seo利器

什么是301永久定向?將某個(gè)域名設(shè)置了301永久定向可以讓該域名轉(zhuǎn)到另外一個(gè)域名上去,同時(shí)在seo角度來(lái)看,可以將該域名的權(quán)重等也一并轉(zhuǎn)移過(guò)去,在seo領(lǐng)域廣泛使用。

在IIS中設(shè)置301永久定向:

在iis中設(shè)置301永久定向

在apache中設(shè)置301永久定向:

在Apache 中,有個(gè)很重要的文件.htaccess,通過(guò)對(duì)它的設(shè)置,可以實(shí)現(xiàn)很多強(qiáng)大的功能,301 重定向只是其中之一。找到redirect permanent / http://www.dallashardmoneylender.com:

其他301永久定向:

 1.PHP下的301重定向
<?
Header( "HTTP/1.1 301 Moved Permanently" ) ;
Header( "Location: http://www.dallashardmoneylender.com/" );
?>

2.ASP下的301重定向
<%@ Language=VBScript %>
<%
Response.Status="301 Moved Permanently"
Response.AddHeader "Location","http://www.dallashardmoneylender.com/"
%>

3.ASP .NET下的301重定向
<script runat="server">
private void Page_Load(object sender, System.EventArgs e)
{
Response.Status = "301 Moved Permanently";
Response.AddHeader ("Location","http://www.dallashardmoneylender.com/");
}
</script>

發(fā)表評(píng)論評(píng)論列表(有 條評(píng)論)

相關(guān)文章:
暫無(wú)相關(guān)文章
最熱文章:
新手怎么制作網(wǎng)頁(yè)? 閱讀:7660
jcarousellite中文文檔 閱讀:6507
表單元素input、按鈕、文字完美垂 閱讀:6247
怎么使chrome(谷歌google 閱讀:6145
phpMailer中文文檔手冊(cè) 閱讀:4639