欧美日韩精品在线,国内精品久久久久久久久,一级毛片恃级毛片直播,清纯唯美亚洲综合欧美色

帝國cms7.2版本默認(rèn)偽靜態(tài)規(guī)則_帝國Cms教程

編輯Tag賺U幣
教程Tag:暫無Tag,歡迎添加,賺取U幣!

帝國cms7.2版本默認(rèn)偽靜態(tài)規(guī)則
暫時只有APACHE IIS6 IIS7的規(guī)則,其他規(guī)則自行對照修改即可。不是很嚴(yán)謹(jǐn),自己可以往嚴(yán)謹(jǐn)中修改:僅供參考!
apache下的.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. #評論列表頁 
  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下的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. #評論列表頁 
  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下的web.config:

  1. <?xml version="1.0" encoding="UTF-8"?> 
  2. <configuration> 
  3. <system.webServer> 
  4. <!--帝國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下偽靜態(tài):

  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; 
以上內(nèi)容僅供參考。

查看更多 帝國cms教程  帝國cms模板

來源:模板無憂//所屬分類:帝國Cms教程/更新時間:2020-06-05
相關(guān)帝國Cms教程