帝國(guó)cms目錄式偽靜態(tài) 帝國(guó)cms tag偽靜態(tài)

帝國(guó)CMS偽靜態(tài)怎么設(shè)置

配置帝國(guó)cms偽靜態(tài)規(guī)則httpd.ini 文件如下:

目前成都創(chuàng)新互聯(lián)公司已為上1000家的企業(yè)提供了網(wǎng)站建設(shè)、域名、虛擬主機(jī)、成都網(wǎng)站托管、企業(yè)網(wǎng)站設(shè)計(jì)、西豐網(wǎng)站維護(hù)等服務(wù),公司將堅(jiān)持客戶導(dǎo)向、應(yīng)用為本的策略,正道將秉承"和諧、參與、激情"的文化,與客戶和合作伙伴齊心協(xié)力一起成長(zhǎng),共同發(fā)展。

[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]

#帝國(guó)#

#信息內(nèi)容頁(yè):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)題分類列表頁(yè):infotype-[!--ttid--]-[!--page--].html

RewriteRule ^(.*)/infotype-(.+?)-(.+?)\.html$ $1/e/action/InfoType/index\.php\?

ttid=$2page=$3

#TAGS信息列表頁(yè):tags-[!--tagname--]-[!--page--].html

RewriteRule ^(.*)/tags-(.+?)-(.+?)\.html$ $1/e/tags/index\.php\?tagname=$2page=$3

(轉(zhuǎn)載)

帝國(guó)cms網(wǎng)站搬家到阿里云下用的 nginx 怎么配置偽靜態(tài)

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、測(cè)試配置的文件是否正確,輸入:

/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)以上兩句話就說(shuō)明配置成功了。

6、下面重啟下nginx

/alidata/server/nginx/sbin/nginx -s reload

7、偽靜態(tài)配置完成

帝國(guó)cms7.2偽靜態(tài)規(guī)則怎么寫

一、在linux主機(jī)下實(shí)現(xiàn)偽靜態(tài)

確認(rèn)虛擬主機(jī)是否支持rewrite偽靜態(tài).htaccess文件。添加.htaccess

文件,把htaccess

文件放在網(wǎng)站根目錄。

二、在win主機(jī)下實(shí)現(xiàn)偽靜態(tài)

確認(rèn)虛擬主機(jī)是否支持rewrite偽靜態(tài)httpd.ini文件。添加httpd.ini文件,把httpd.ini文件放入網(wǎng)站根目錄中。

具體偽靜態(tài)規(guī)則看各自網(wǎng)站程序規(guī)則。

發(fā)布帝國(guó)會(huì)員空間的偽靜態(tài),其實(shí)簡(jiǎn)單到弊,關(guān)鍵是你開始想做

nginx版本,用于自己的獨(dú)立服務(wù)器,要自己修改域名配置

rewrite

^([^\.])/my([0-9]+)/$

$1/e/space/index.php?userid=$2

last;

rewrite

^([^\.])/my([0-9]+)/(UserInfo|gbook)\.html$

$1/e/space/$3.php?userid=$2

last;

rewrite

^([^\.])/my([0-9]+)/list-([0-9]+)\.html$

$1/e/space/list.php?userid=$2mid=$3

last;

rewrite

^([^\.])/my([0-9]+)/list-([0-9]+)-([0-9]+)\.html$

$1/e/space/list.php?userid=$2mid=$3page=$4

last;

apache版本,用于虛擬主機(jī),一般更新個(gè).htaccess文件到你的網(wǎng)站根目錄就可以了(當(dāng)然要空間支持.htaccess)

RewriteEngine

On

RewriteBase

/

RewriteCond

%{QUERY_STRING}

^(.*)$

RewriteRule

^my([0-9]+)/$

e/space/index.php?userid=$1%1

RewriteCond

%{QUERY_STRING}

^(.*)$

RewriteRule

^my([0-9]+)/(UserInfo|gbook)\.html$

e/space/$2.php?userid=$1%1

RewriteCond

%{QUERY_STRING}

^(.*)$

RewriteRule

^my([0-9]+)/list-([0-9]+)\.html$

e/space/list.php?userid=$1mid=$2%1

RewriteCond

%{QUERY_STRING}

^(.*)$

RewriteRule

^my([0-9]+)/list-([0-9]+)-([0-9]+)\.html$

e/space/list.php?userid=$1mid=$2page=$3%1

以上設(shè)置是基于帝國(guó)會(huì)員空間的默認(rèn)版本,主要模式是

http://你的域名/my+會(huì)員ID/

的靜態(tài)鏈接形式,my可以改自己的;

可以改成

http://你的域名/my/會(huì)員注冊(cè)名/

的形式,這時(shí)你要禁止會(huì)員用中文注冊(cè),

第一行分別改成

nginx

rewrite

^([^\.]*)/my/(.+)/$

$1/e/space/index.php?username=$2

last;

apache

RewriteRule

^my/(.+)/$

e/space/index.php?username=$1%1

其他下面各行要分別按第一行的改動(dòng)修改一下。

帝國(guó)cms 偽靜態(tài)后臺(tái)怎么設(shè)置

帝國(guó)cms 偽靜態(tài)后臺(tái)設(shè)置方法:

1、在網(wǎng)站根目錄(web文件夾)下建一個(gè)文件,文件名及后綴格式為:httpd.ini

備注:該文件的創(chuàng)建很簡(jiǎn)單,可以隨意命名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ī)則”下面寫入對(duì)應(yīng)網(wǎng)站的偽靜態(tài)規(guī)則即可。

4、帝國(guó)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]

新聞名稱:帝國(guó)cms目錄式偽靜態(tài) 帝國(guó)cms tag偽靜態(tài)
文章網(wǎng)址:http://muchs.cn/article46/ddcsghg.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供網(wǎng)站建設(shè)、小程序開發(fā)靜態(tài)網(wǎng)站、網(wǎng)站收錄做網(wǎng)站、外貿(mào)建站

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源: 創(chuàng)新互聯(lián)

綿陽(yáng)服務(wù)器托管