帝國cms偽靜態(tài)apache的rewrite規(guī)則設(shè)置

字號:


    # 將 rewriteengine 模式打開
    rewriteengine on
    #信息內(nèi)容頁:showinfo-[!--classid--]-[!--id--]-[!--page--].html
    rewritecond %{query_string} ^(.*)$
    rewriterule ^showinfo-(.+?)-(.+?)-(.+?).html$ /e/action/showinfo.php?classid=$1&id=$2&page=$3
    #信息列表:listinfo-[!--classid--]-[!--page--].html
    rewritecond %{query_string} ^(.*)$
    rewriterule ^listinfo-(.+?)-(.+?).html$ /e/action/listinfo/index.php?classid=$1&page=$2
    #標(biāo)題分類列表頁:infotype-[!--ttid--]-[!--page--].html
    rewritecond %{query_string} ^(.*)$
    rewriterule ^infotype-(.+?)-(.+?).html$ /e/action/infotype/index.php?ttid=$1&page=$2
    #tags信息列表頁:tags-[!--tagname--]-[!--page--].html
    rewritecond %{query_string} ^(.*)$
    rewriterule ^tags-(.+?)-(.+?).html$ /e/tags/index.php?tagname=$1&page=$2
    以上都是默認(rèn)的rewrite規(guī)則設(shè)置