帝國偽靜態Apache的Rewrite如何設置

帝國偽靜態Apache的Rewrite如何設置

帝國偽靜態apache的rewrite如何設置?

帝國偽靜態Apache的Rewrite如何設置帝國cms7.0提供了偽靜態的設置,本文就帝國7.0下偽靜態Apache的Rewrite設置方法簡述如下:

推薦學習《帝國cms教程

代碼如下:

#?將?RewriteEngine?模式打開 RewriteEngine?On #信息內容頁:showinfo-[!--classid--]-[!--id--]-[!--page--].html RewriteCond?%{QUERY_STRING}?^(.*)$ RewriteRule?^showinfo-(.+?)-(.+?)-(.+?).html$?/e/action/ShowInfo.php?classid=$1&amp;id=$2&amp;page=$3?<p>#信息列表:listinfo-[!--classid--]-[!--page--].html RewriteCond?%{QUERY_STRING}?^(.*)$ RewriteRule?^listinfo-(.+?)-(.+?).html$?/e/action/ListInfo/index.php?classid=$1&amp;page=$2</p>?<p>#標題分類列表頁:infotype-[!--ttid--]-[!--page--].html RewriteCond?%{QUERY_STRING}?^(.*)$ RewriteRule?^infotype-(.+?)-(.+?).html$?/e/action/InfoType/index.php?ttid=$1&amp;page=$2</p>?<p>#TAGS信息列表頁:tags-[!--tagname--]-[!--page--].html RewriteCond?%{QUERY_STRING}?^(.*)$ RewriteRule?^tags-(.+?)-(.+?).html$?/e/tags/index.php?tagname=$1&amp;page=$2</p>

? 版權聲明
THE END
喜歡就支持一下吧
點贊5 分享