麻豆小视频在线观看_中文黄色一级片_久久久成人精品_成片免费观看视频大全_午夜精品久久久久久久99热浪潮_成人一区二区三区四区

首頁 > 網(wǎng)站 > Nginx > 正文

帝國cms7.2默認(rèn)偽靜態(tài)規(guī)則提供apache/IIS6/IIS7/Nginx

2024-08-30 12:30:19
字體:
供稿:網(wǎng)友

 apache下的.htaccess:


RewriteEngine On
ErrorDocument 404 /404.html
Rewritebase /
#信息列表
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^listinfo-(.+?)-(.+?)/.html$ /e/action/ListInfo/index/.php/?classid=$1&page=$2
#信息內(nèi)容頁
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^showinfo-(.+?)-(.+?)-(.+?)/.html$ /e/action/ShowInfo/.php/?classid=$1&id=$2&page=$3
#標(biāo)題分類列表頁
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^infotype-(.+?)-(.+?)/.html$ /e/action/InfoType/index/.php/?ttid=$1&page=$2
#TAGS信息列表頁
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^tags-(.+?)-(.+?)/.html$ /e/tags/index/.php/?tagname=$1&page=$2
#評論列表頁
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^comment-(.+?)-(.+?)-(.+?)-(.+?)-(.+?)-(.+?)/.html$  /e/pl/index/.php/?doaction=$1&classid=$2&id=$3&page=$4&myorder=$5&tempid=$6




IIS6下的httpd.ini:



[ISAPI_Rewrite]
# 3600 = 1 hour
CacheClockRate 3600
RepeatLimit 32
#信息列表
RewriteRule ^(.*)listinfo-(.+?)-(.+?)/.html$ $1/e/action/ListInfo/index/.php/?classid=$2&page=$3
#信息內(nèi)容頁
RewriteRule ^(.*)showinfo-(.+?)-(.+?)-(.+?)/.html$ $1/e/action/ShowInfo/.php/?classid=$2&id=$3&page=$4
#標(biāo)題分類列表頁
RewriteRule ^(.*)infotype-(.+?)-(.+?)/.html$ $1/e/action/InfoType/index/.php/?ttid=$2&page=$3
#TAGS信息列表頁
RewriteRule ^(.*)tags-(.+?)-(.+?)/.html$ $1/e/tags/index/.php/?tagname=$2&page=$3
#評論列表頁
RewriteRule ^(.*)comment-(.+?)-(.+?)-(.+?)-(.+?)-(.+?)-(.+?)/.html$  $1/e/pl/index/.php/?doaction=$2&classid=$3&id=$4&page=$5&myorder=$6&tempid=$7
#搜索偽靜態(tài)




IIS7下的web.config:



<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<!--帝國7.2默認(rèn)規(guī)則 IIS7的rule name不能重復(fù)相同-->
<rewrite>
<rules>
<rule name="listinfo">
<match url="^(.*/)*listinfo-(.+?)-(.+?).html/?*(.*)$" />
<action type="Rewrite" url="{R:1}/e/action/ListInfo/index.php/?classid={R:2}&amp;page={R:3}" />
</rule>
<rule name="showinfo">
<match url="^(.*/)*showinfo-(.+?)-(.+?)-(.+?).html/?*(.*)$" />
<action type="Rewrite" url="{R:1}/e/action/ShowInfo.php/?classid={R:2}&amp;id={R:3}&amp;page={R:4}" />
</rule>
<rule name="infotype">
<match url="^(.*/)*infotype-(.+?)-(.+?).html/?*(.*)$" />
<action type="Rewrite" url="{R:1}/e/action/InfoType/index.php/?ttid={R:2}&amp;page={R:3}" />
</rule>
<rule name="tags">
<match url="^(.*/)*tags-(.+?)-(.+?).html/?*(.*)$" />
<action type="Rewrite" url="{R:1}/e/tags/index.php/?tagname={R:2}&amp;page={R:3}" />
</rule>
<rule name="comment">
<match url="^(.*/)*comment-(.+?)-(.+?)-(.+?)-(.+?)-(.+?)-(.+?).html/?*(.*)$" />
<action type="Rewrite" url="{R:1}/e/pl/index.php/?doaction={R:2}&amp;={R:3}&amp;={R:4}&amp;page={R:5}&amp;myorder={R:6}&amp;tempid={R:7}" />
</rule>
</rules>
</rewrite>
</system.webServer>  
</configuration>




Nginx下偽靜態(tài):



rewrite ^([^/.]*)/listinfo-(.+?)-(.+?)/.html$ $1/e/action/ListInfo/index.php?classid=$2&page=$3 last;
rewrite ^([^/.]*)/showinfo-(.+?)-(.+?)-(.+?)/.html$ $1/e/action/ShowInfo.php?classid=$2&id=$3&page=$4 last;
rewrite ^([^/.]*)/infotype-(.+?)-(.+?)/.html$ $1/e/action/InfoType/index.php?ttid=$2&page=$3 last;
rewrite ^([^/.]*)/tags-(.+?)-(.+?)/.html$ $1/e/tags/index.php?tagname=$2&page=$3 last;
rewrite ^([^/.]*)/comment-(.+?)-(.+?)-(.+?)-(.+?)-(.+?)-(.+?)/.html$  $1/e/pl/index/.php/?doaction=$2&classid=$3&id=$4&page=$5&myorder=$6&tempid=$7 last;
if (!-e $request_filename) {
return 404;
}

 

weijingtai.rar
文件類型: .rar 18bc6b60c77320229aaf797843e300e0.rar (1.80 KB)
發(fā)表評論 共有條評論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 久久久久av69精品 | 久综合色| 91热久久免费频精品黑人99 | 激情网站免费观看 | 国产免费传媒av片在线 | 久久777国产线看观看精品 | 久久人 | 久久6国产 | 亚洲视频在线网 | 毛片电影网址 | 在线91观看 | 老司机免费福利午夜入口ae58 | 成年人高清视频在线观看 | 久久草在线视频国产 | 黄色大片高清 | 综合日韩欧美 | 一级毛片真人免费播放视频 | www.99av| 9999在线视频 | 免费观看国产精品视频 | 亚洲一区中文字幕 | 高清av免费 | bt 自拍 另类 综合 欧美 | 国产精品免费麻豆入口 | 成人福利视频在 | 婷婷久久综合九色综合色多多蜜臀 | 91九色视频在线播放 | 美女黄页网站免费进入 | 竹内纱里奈和大战黑人 | 成年人黄视频 | 国产精品视频亚洲 | 一级毛片在线免费播放 | 国产精品爱久久久久久久 | 久久人人av | 1314av| 水卜樱一区二区av | 久久久麻豆 | 欧美日韩大片在线观看 | 亚洲最新黄色网址 | 中国av免费在线观看 | 极品国产91在线网站 |