帝國偽靜態Apache的Rewrite如何設置
發布時間:2019-12-11 來源:未知 瀏覽: 關鍵詞:帝國
帝國偽靜態Apache的Rewrite如何設置?
帝國偽靜態Apache的Rewrite如何設置帝國CMS7.0提供了偽靜態的設置,本文就帝國7.0下偽靜態Apache的Rewrite設置方法簡述如下:
推薦學習《帝國cms教程》
代碼如下:
# 將 RewriteEngine 模式打開RewriteEngine On#信息內容頁:showinfo-[!--classid--]-[!--id--]-[!--page--].htmlRewriteCond %{QUERY_STRING} ^(.*)$RewriteRule ^showinfo-(.+?)-(.+?)-(.+?).html$ /e/action/ShowInfo.php?classid=$1&id=$2&page=$3</p> <p>#信息列表:listinfo-[!--classid--]-[!--page--].htmlRewriteCond %{QUERY_STRING} ^(.*)$RewriteRule ^listinfo-(.+?)-(.+?).html$ /e/action/ListInfo/index.php?classid=$1&page=$2</p> <p>#標題分類列表頁:infotype-[!--ttid--]-[!--page--].htmlRewriteCond %{QUERY_STRING} ^(.*)$RewriteRule ^infotype-(.+?)-(.+?).html$ /e/action/InfoType/index.php?ttid=$1&page=$2</p> <p>#TAGS信息列表頁:tags-[!--tagname--]-[!--page--].htmlRewriteCond %{QUERY_STRING} ^(.*)$RewriteRule ^tags-(.+?)-(.+?).html$ /e/tags/index.php?tagname=$1&page=$2
以上就是默認的Rewrite規則設置方法。
以上就是帝國偽靜態Apache的Rewrite如何設置的詳細內容,更多請關注魔酷閣其它相關文章!
責任編輯:實速科技