時間:2022-07-29 19:09:01 | 來源:建站知識
時間:2022-07-29 19:09:01 來源:建站知識
隱私保護對于SNS網(wǎng)站來說是很重要的一項,但是SNS網(wǎng)站還是需要搜索引擎優(yōu)化,特別是首頁的搜索引擎優(yōu)化。
一、優(yōu)化三大標簽
對于一個網(wǎng)頁來說三大標簽TITLE,Keywords,DESCRIPTION是很重要的,TITLE標簽尤為重要。因為UCHOME系統(tǒng)可以在后臺輸入網(wǎng)站名,自動生成title,生成的title一般都是“大紅鷹校內(nèi)網(wǎng)- Powered by Discuz!”這樣從搜索引擎角度優(yōu)化的關(guān)鍵詞密度講,網(wǎng)站的主關(guān)鍵詞密度被稀釋了。而現(xiàn)在比較常用的title寫法都是“大紅鷹校內(nèi)網(wǎng)——大紅鷹學(xué)院學(xué)生的網(wǎng)上家園”。再者如百度自身的產(chǎn)品,百度知道的title “百度知道——全球最大中文互動問答平臺”。百度貼吧“貼吧——全球最大中文社區(qū)”。所以應(yīng)該去修改網(wǎng)站的title。
首先在網(wǎng)站目錄/template/default/ 找到header.htm文件,下載到本地,用記事本打開,找到<title>標簽,可以直接修改成靜態(tài)的,而不是函數(shù)調(diào)用。
同理Keywords,DESCRIPTION也可以通過修改源代碼的添加進去。
二、網(wǎng)站偽靜態(tài)化
對于搜索引擎來說,網(wǎng)站實現(xiàn)偽靜態(tài)化是很重要的,可能你的網(wǎng)站遲遲不被收錄,但是一實現(xiàn)偽靜態(tài)化之后,第二天網(wǎng)站就被百度收錄了。
1.Httpd.ini文件是偽靜態(tài)必須的,如果您的網(wǎng)站是放在根目錄下的可以直接使用。
----------
RewriteRule ^(.*)/archiver/((fid|tid)-[/w/-]+/.html)/?*(.*)$ $1/archiver/index/.php/?$2&$4
RewriteRule ^(.*)/forum-([0-9]+)-([0-9]+)/.html/?*(.*)$ $1/forumdisplay/.php/?fid=$2&page=$3&$4
RewriteRule ^(.*)/thread-([0-9]+)-([0-9]+)-([0-9]+)/.html/?*(.*)$ $1/viewthread/.php/?tid=$2&extra=page/%3D$4&page=$3&$4
RewriteRule ^(.*)/space-(username|uid)-(.+)/.html/?*(.*)$ $1/space/.php/?$2=$3&$4
RewriteRule ^(.*)/tag-(.+)/.html/?*(.*)$ $1/tag/.php/?name=$2&$3
RewriteRule ^/(space|network)-(.+)/.html$ /$1/.php/?rewrite=$2 [L]
RewriteRule ^/(space|network)/.html$ /$1/.php [L]
RewriteRule ^/([0-9]+)$ /space/.php/?uid=$1 [L]
2.在后臺開啟偽靜態(tài)
3.在要啟用Rewrite的IIS站點的Isapi上添加這個篩選器,
篩選器名稱Rewrite,可執(zhí)行文件選擇c:/Rewrite/Rewrite.dll即可以了,
但C盤的Rewrite文件夾一定要有users組的默認權(quán)限,最后要重啟IIS.
(這里讓服務(wù)器商幫你完成)
關(guān)鍵詞:索引
微信公眾號
版權(quán)所有? 億企邦 1997-2022 保留一切法律許可權(quán)利。