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

首頁 > CMS > 帝國(guó)Empire > 正文

帝國(guó)CMS默認(rèn)偽靜態(tài)規(guī)則配置適合apacheIIS6IIS7Nginx

2024-07-09 22:51:04
字體:
供稿:網(wǎng)友

Apache服務(wù)器

根目錄下.htaccess文件:

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

 

IIS6服務(wù)器

根目錄下httpd.ini

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

 

IIS7服務(wù)器

根目錄下的web.config:

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <configuration>
  3. <system.webServer>
  4. <!--帝國(guó)7.2默認(rèn)規(guī)則 IIS7的rule name不能重復(fù)相同-->
  5. <rewrite>
  6. <rules>
  7. <rule name="listinfo">
  8. <match url="^(.*/)*listinfo-(.+?)-(.+?).html/?*(.*)$" />
  9. <action type="Rewrite" url="{R:1}/e/action/ListInfo/index.php/?classid={R:2}&amp;page={R:3}" />
  10. </rule>
  11. <rule name="showinfo">
  12. <match url="^(.*/)*showinfo-(.+?)-(.+?)-(.+?).html/?*(.*)$" />
  13. <action type="Rewrite" url="{R:1}/e/action/ShowInfo.php/?classid={R:2}&amp;id={R:3}&amp;page={R:4}" />
  14. </rule>
  15. <rule name="infotype">
  16. <match url="^(.*/)*infotype-(.+?)-(.+?).html/?*(.*)$" />
  17. <action type="Rewrite" url="{R:1}/e/action/InfoType/index.php/?ttid={R:2}&amp;page={R:3}" />
  18. </rule>
  19. <rule name="tags">
  20. <match url="^(.*/)*tags-(.+?)-(.+?).html/?*(.*)$" />
  21. <action type="Rewrite" url="{R:1}/e/tags/index.php/?tagname={R:2}&amp;page={R:3}" />
  22. </rule>
  23. <rule name="comment">
  24. <match url="^(.*/)*comment-(.+?)-(.+?)-(.+?)-(.+?)-(.+?)-(.+?).html/?*(.*)$" />
  25. <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}" />
  26. </rule>
  27. </rules>
  28. </rewrite>
  29. </system.webServer>  
  30. </configuration>

 

Nginx服務(wù)器

  1. rewrite ^([^/.]*)/listinfo-(.+?)-(.+?)/.html$ $1/e/action/ListInfo/index.php?classid=$2&page=$3 last;
  2. rewrite ^([^/.]*)/showinfo-(.+?)-(.+?)-(.+?)/.html$ $1/e/action/ShowInfo.php?classid=$2&id=$3&page=$4 last;
  3. rewrite ^([^/.]*)/infotype-(.+?)-(.+?)/.html$ $1/e/action/InfoType/index.php?ttid=$2&page=$3 last;
  4. rewrite ^([^/.]*)/tags-(.+?)-(.+?)/.html$ $1/e/tags/index.php?tagname=$2&page=$3 last;
  5. rewrite ^([^/.]*)/comment-(.+?)-(.+?)-(.+?)-(.+?)-(.+?)-(.+?)/.html$  $1/e/pl/index/.php/?doaction=$2&classid=$3&id=$4&page=$5&myorder=$6&tempid=$7 last;
  6. if (!-e $request_filename) {
  7. return 404;
  8. }
發(fā)表評(píng)論 共有條評(píng)論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 荔浦县| 佳木斯市| 新化县| 师宗县| 利川市| 崇礼县| 怀化市| 左云县| 乐亭县| 凤山县| 红河县| 紫金县| 沙坪坝区| 拉萨市| 衢州市| 罗田县| 黔西县| 龙川县| 株洲县| 恩平市| 东宁县| 青川县| 江口县| 黄石市| 波密县| 阜新| 广宁县| 古交市| 镶黄旗| 烟台市| 伊金霍洛旗| 乾安县| 八宿县| 古丈县| 保靖县| 忻城县| 花莲县| 崇礼县| 济南市| 安陆市| 连南|