關(guān)鍵字獨立模塊、圖書獨立模塊、自定義網(wǎng)頁、幫助獨立模塊、文章共享模塊,,偽靜態(tài)設(shè)置分享!親測有效
關(guān)鍵字獨立模塊
https://abc.org/index.php?s=tag //目標(biāo)效果https://abc.org/tag/
https://abc.org/index.php?s=tag&name=1 //目標(biāo)效果https://abc.org/tag/abc.html
圖書獨立模塊
https://abc.org/index.php?s=book //目標(biāo)效果https://abc.org/book
https://abc.org/index.php?s=book&c=category&id=1 //目標(biāo)效果https://abc.org/book/hao/
https://abc.org/index.php?s=book&c=show&id=1 //目標(biāo)效果https://abc.org/book/hao/1.html
https://abc.org/index.php?s=book&c=son&m=show&id=1 //目標(biāo)效果https://abc.org/book/read/1.html
幫助獨立模塊
https://abc.org/index.php?s=help //目標(biāo)效果https://abc.org/help/
https://abc.org/index.php?s=help&c=category&id=5 //目標(biāo)效果https://abc.org/help/hao/
https://abc.org/index.php?s=help&c=category&id=42 //目標(biāo)效果https://abc.org/help/hao/henhao/
https://abc.org/index.php?s=help&c=show&id=461 //目標(biāo)效果https://abc.org/help/461.html
文章共享模塊
https://abc.org/index.php?c=category&id=1 //目標(biāo)效果https://abc.org/xinwen/
https://abc.org/index.php?c=category&id=5 //目標(biāo)效果https://abc.org/xinwen/guonei/
https://abc.org/index.php?c=show&id=7830 //目標(biāo)效果https://abc.org/xinwen/guonei/7830.html
return [
//關(guān)鍵詞庫模塊
"tag" => "index.php?s=tag", // tag首頁 /tag/
"tag\/(.+)\.html" => "index.php?s=tag&name=$1", // tag內(nèi)容頁 tag/{tag}.html
//獨立書籍模塊
"book\/read\/([0-9]+).html(.*)" => "index.php?s=book&c=son&m=show&id=$1", // 書章節(jié)頁 ({pdirname}/{id}.html)
"book\/([A-za-z0-9 \-\_\/]+)\/([0-9]+)\.html" => "index.php?s=book&c=show&id=$2", //書首頁 ({modname}/{pdirname}/{id}.html)
"book" => "index.php?s=book", //書首頁({modname}/)
"book\/([A-za-z0-9 \-\_]+)" => "index.php?s=book&c=category&dir=$1", //書分類頁 ({pdirname})
//幫助模塊
"help\/([0-9]+)\.html" => "index.php?s=help&c=show&id=$1", // ({modname}/{id}.html)
"help" => "index.php?s=help", //({modname})
"help\/([A-za-z0-9 \-\_]+)" => "index.php?s=help&c=category&dir=$1", // ({modname}/{dirname}/)
//自定義網(wǎng)頁
"page\/([A-za-z0-9 \-\_]+)\.html" => "index.php?s=page&dir=$1", // (page/{dirname}.html)
//共享文章模塊
"([A-za-z0-9 \-\_\/]+)\/p([0-9]+)\.html" => "index.php?c=category&dir=$1&page=$2", //【帶欄目路徑】欄目列表(分頁)({dirname}/p{page}.html)
"([A-za-z0-9 \-\_\/]+)\/([0-9]+)\.html" => "index.php?c=show&id=$2", //【帶欄目路徑】模塊內(nèi)容頁({dirname}/{id}.html)
"([A-za-z0-9 \-\_\/]+)" => "index.php?c=category&dir=$1", //【帶欄目路徑】模塊欄目列表({dirname})
];特別要注意的是: id、dir是有區(qū)別的,,少個字母就404,,,隨意打賞,,拒絕白嫖!