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

首頁 > 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;}
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 精品一区二区久久久久久按摩 | 精品久久久久久综合日本 | 成人午夜在线免费 | 黄色网战入口 | 视频一区二区三区免费观看 | 欧美成人一级 | 欧美成年人视频在线观看 | av在线一区二区三区 | av在线免费看网址 | 369看片你懂的小视频在线观看 | 毛片免费大全短视频 | av在线播放电影 | 国产亚洲精品久久久久5区 男人天堂免费 | 视频一区二区三区在线 | 久久久成人动漫 | 羞羞视频免费观看入口 | 干色视频 | 久久网综合| 午夜国内精品a一区二区桃色 | 欧美日韩在线免费观看 | 欧美日韩在线免费观看 | 99激情 | 中国洗澡偷拍在线播放 | 久久国产一二区 | 中文字幕在线观看91 | 国产资源在线免费观看 | 欧美日韩高清一区二区三区 | 毛片午夜| 性爱免费在线视频 | 91短视频在线观看 | 国产1区2区3区中文字幕 | 久久国产精品一区 | 亚洲精品aaaaa | 欧美18—19sex性hd按摩 | 欧美日韩免费一区二区三区 | 欧美成人精品不卡视频在线观看 | 国产女做a爱免费视频 | 国产精品久久久不卡 | 草草久 | 免费国产之a视频 | 欧美一区中文字幕 |