網站建設公司對網址URL的規范
url 網址規范化指的是當出現了有大于一個的鏈接指向含有相同內容的網頁時,通過各種方法讓搜索引擎只挑選其中
一個最喜歡的的網址,同時告訴搜索引擎不收錄和索引其他網址的過程,從搜索引擎的角度上說,url 規范化減少了
對一個網站的重復頁面的索引。網站重復頁面問題也是搜索引擎優化(SEO)中很多人關注的一部分。url 網址規范化是
一個將url進行標準化的過程,向揚科技網絡建議指定url范式。
一、 頂級域名網址url, 指定www和不帶www 中的一個。
二、給重復頁面指定 url范式。
三、 設置robots.txt文件,阻止那些不希望被搜索引擎檢索的網址目錄,url格式。
四、 301 重定向
301重定向是將某一頁面永久重定向至另外一頁面。301轉向也是SEO 廣泛使用的一種對搜索引擎最為友好的轉向方法
之一。搜索引擎將收錄永久重定向到的那個頁面,自然也解決了 url 網址規范化問題。
典型的比如在linux系統apache服務器下, 可以通過修改.htaccess文件來實現301重定向。在.htaccess 文件中加入
以下代碼,該代碼要寫在url rewrite 重寫規則的前面。
redirect 301 /old.htm http://www.domain.com/new.htm 或
redirect permanent /old.htm http://www.domain.com/new.htm
如果是所有的domain.com 都要301永久重定向到 www.domain.com 則還要進行mod_rewrite。
RewriteEngine on
RewriteCond %{http_host} ^www.dom.com [NC]
RewriteRule ^(.*)$ http://dom.com/$1 [L,R=301]
其他windows主機等 可以通過php,asp,jsp 動態腳本實現。
URL standardization-----網站優化,建站公司,網址URL規范化,做網站,網站設計,網站制作
URL canonicalization refers to when there is more than one links to contain the same content Webpage, through various methods to let search engine only pick one
One of the most like the web site, at the same time tell search engines not included and other site index, search engine from the point of view, URL standardization reduces
Repeat the page on a site index. Web page is also repeated search engine optimization (SEO) part of attention of many people. URL canonicalization is
An URL standard process, Google Chinese official blog suggestions we specify URL paradigm.
A top-level domain name, website URL, designated WWW and without a www.
Two, to repeat the page to specify the URL paradigm.
Three, set the robots.txt file, to stop the people who don't want to be search engine web directory, URL format.
Four, a 301 redirect
301 redirect is a page permanent redirect to another page. 301 to SEO is the widely used a search engine friendly for steering method
One of. The search engine will be the permanent redirect to the page, nature also solved URL canonicalization problems.
A typical Linux system such as the Apache server, you can modify the.Htaccess file to achieve a 301 redirect. Join in the.Htaccess file
The following code, in front of the code you need to write in the URL Rewrite rewrite rules.
Redirect 301 /old.htm http://www.domain.com/new.htm or
Redirect permanent /old.htm http://www.domain.com/new.htm
If all the domain.com will be 301 permanent redirect to www.domain.com and mod_rewrite.
RewriteEngine on
RewriteCond%{http_host} ^www.dom.com [NC]
RewriteRule ^ (. *) $http://dom.com/$1 [L, R=301]
Other windows host can be PHP, ASP, JSP dynamic script.
關鍵詞:做網站,網站建設,網站制作,網站設計,網站建設公司
網站建設公司對網址URL的規范由東莞網站制作編輯 http://www.dalld.com/fus/3450.html如需轉載請注明出處
東莞小程序開發 東莞網站改版 東莞做網站 東莞網站制作 東莞小程序商城開發 德陽網站建設 哈爾濱網站建設 煙臺網站建設 雷州網站建設 湘潭網站建設 惠州網站設計 包頭網站設計 拉薩網站設計 宜賓網站設計 俄羅斯網站設計 淮南小程序制作 四會小程序制作 邯鄲小程序制作 重慶小程序制作 宜春小程序制作
上一篇:沒有了!
下一篇:網站的制作價格為何有高有低