国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > CMS > 帝國Empire > 正文

帝國cms7.2版本默認偽靜態規則

2024-08-28 12:29:24
字體:
來源:轉載
供稿:網友

暫時只有APACHE IIS6 IIS7的規則,其他規則自行對照修改即可。不是很嚴謹,自己可以往嚴謹中修改:僅供參考!
apache下的.htaccess:

RewriteEngine OnErrorDocument 404 /404.htmlRewritebase /#信息列表RewriteCond %{QUERY_STRING} ^(.*)$RewriteRule ^listinfo-(.+?)-(.+?).html$ /e/action/ListInfo/index.php?classid=$1&page=$2#信息內容頁RewriteCond %{QUERY_STRING} ^(.*)$RewriteRule ^showinfo-(.+?)-(.+?)-(.+?).html$ /e/action/ShowInfo.php?classid=$1&id=$2&page=$3#標題分類列表頁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 hourCacheClockRate 3600RepeatLimit 32#信息列表RewriteRule ^(.*)listinfo-(.+?)-(.+?).html$ $1/e/action/ListInfo/index.php?classid=$2&page=$3#信息內容頁RewriteRule ^(.*)showinfo-(.+?)-(.+?)-(.+?).html$ $1/e/action/ShowInfo.php?classid=$2&id=$3&page=$4#標題分類列表頁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#搜索偽靜態

IIS7下的web.config:

<?xml version="1.0" encoding="UTF-8"?><configuration><system.webServer><!--帝國7.2默認規則 IIS7的rule name不能重復相同--><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下偽靜態:

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;}
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 安平县| 三台县| 井研县| 瓦房店市| 五河县| 益阳市| 临猗县| 绥德县| 京山县| 于田县| 方山县| 宿迁市| 绍兴县| 兰溪市| 务川| 德保县| 汕尾市| 许昌市| 崇文区| 铜鼓县| 丰宁| 宾川县| 五常市| 剑川县| 嘉荫县| 萝北县| 巴中市| 齐齐哈尔市| 平泉县| 连云港市| 阜南县| 绥滨县| 永靖县| 崇文区| 峨边| 炎陵县| 闵行区| 东兴市| 迁西县| 土默特右旗| 芷江|