配置帝國cms偽靜態(tài)規(guī)則httpd.ini 文件如下:
讓客戶滿意是我們工作的目標(biāo),不斷超越客戶的期望值來自于我們對這個行業(yè)的熱愛。我們立志把好的技術(shù)通過有效、簡單的方式提供給客戶,將通過不懈努力成為客戶在信息化領(lǐng)域值得信任、有價(jià)值的長期合作伙伴,公司提供的服務(wù)項(xiàng)目有:域名注冊、虛擬空間、營銷軟件、網(wǎng)站建設(shè)、湖口網(wǎng)站維護(hù)、網(wǎng)站推廣。
[ISAPI_Rewrite]
# 3600= 1hour
CacheClockRate 3600
RewriteEngine On
RepeatLimit 32
#301重定向#
RewriteCond Host: ^phpfensi.com$
RewriteRule (.*)ht tp :/ /w ww.phpfensi.com$1[I,RP]
#帝國#
#信息內(nèi)容頁:showinfo-[!--classid--]-[!--id--]-[!--page--].html
RewriteRule ^(.*)/showinfo-(.+?)-(.+?)-(.+?)\.html$ $1/e/action/ShowInfo\.php\?
classid=$2id=$3page=$4
#信息列表:listinfo-[!--classid--]-[!--page--].html
RewriteRule ^(.*)/listinfo-(.+?)-(.+?)\.html$ $1/e/action/ListInfo/index\.php\?
classid=$2page=$3
#標(biāo)題分類列表頁:infotype-[!--ttid--]-[!--page--].html
RewriteRule ^(.*)/infotype-(.+?)-(.+?)\.html$ $1/e/action/InfoType/index\.php\?
ttid=$2page=$3
#TAGS信息列表頁:tags-[!--tagname--]-[!--page--].html
RewriteRule ^(.*)/tags-(.+?)-(.+?)\.html$ $1/e/tags/index\.php\?tagname=$2page=$3
(轉(zhuǎn)載)
1、先進(jìn)入到nginx的配置文件目錄,輸入以下命令:
cd /alidata/server/nginx/conf/rewrite
2、再輸入:ll
3、輸入以下命令:
cd /alidata/server/nginx/conf/vhosts
4、進(jìn)入到網(wǎng)站配置目錄,打開配置文件,修改好偽靜態(tài)調(diào)用文件;
5、測試配置的文件是否正確,輸入:
/alidata/server/nginx/sbin/nginx -t
nginx: the configuration file /alidata/server/nginx/conf/nginx.conf syntax is ok
nginx: configuration file /alidata/server/nginx/conf/nginx.conf test is successful
如果出現(xiàn)以上兩句話就說明配置成功了。
6、下面重啟下nginx
/alidata/server/nginx/sbin/nginx -s reload
7、偽靜態(tài)配置完成
帝國cms 偽靜態(tài)后臺設(shè)置方法:
1、在網(wǎng)站根目錄(web文件夾)下建一個文件,文件名及后綴格式為:httpd.ini
備注:該文件的創(chuàng)建很簡單,可以隨意命名txt文件為該文件名即可。
2、用txt/記事本模式打開httpd.ini文件,將下面的內(nèi)容復(fù)制到該文件內(nèi):
[ISAPI_Rewrite]
# 3600 = 1 hour
CacheClockRate 3600
RepeatLimit 32
RewriteEngine On
#偽靜態(tài)規(guī)則
3、在“#偽靜態(tài)規(guī)則”下面寫入對應(yīng)網(wǎng)站的偽靜態(tài)規(guī)則即可。
4、帝國CMS偽靜態(tài)規(guī)則(應(yīng)以官方文件為準(zhǔn)):
RewriteRule ^([0-9]+).([0-9]+)/$ e/action/ShowInfo.php?classid=$1id=$2 [L]
RewriteRule ^([0-9]+).([0-9]+)$ $1.$2/ [L,R=301]
RewriteRule ^([0-9]+)/$ e/action/ListInfo/?classid=$1 [L]
RewriteRule ^([0-9]+)$ $1/ [L,R=301]
RewriteRule ^list([0-9]+).([0-9]+)/$ e/action/ListInfo/index.php?page=$1classid=$2 [L]
RewriteRule ^list([0-9]+).([0-9]+)$ list$1.$2/ [L,R=301]
RewriteRule ^archive([0-9]+).([0-9]+)-([0-9]+)-([0-9]+)/$ e/action/ListInfo.php?classid=$1mid=1tempid=9starttime=$2-$3-$4endtime=$2-$3-$4 [L]
RewriteRule ^archive([0-9]+).([0-9]+)-([0-9]+)-([0-9]+)$ ^archive([0-9]+).([0-9]+)-([0-9]+)-([0-9]+)/ [L,R=301]
本文名稱:帝國cms偽靜態(tài)改造 帝國cms 開啟動態(tài)
鏈接地址:http://chinadenli.net/article26/dogsejg.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供手機(jī)網(wǎng)站建設(shè)、外貿(mào)建站、企業(yè)網(wǎng)站制作、App設(shè)計(jì)、標(biāo)簽優(yōu)化、小程序開發(fā)
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)