url規(guī)則設(shè)置后訪問內(nèi)容頁面404
鏈接/news/xingyezixun/show-86.html
//{pdirname}/show-{id}-{page}.html
"([\w\\/]+)\/show-([0-9]+)-([0-9]+).html" => "index.php?c=show&id=$2&page=$3",
//{pdirname}/show-{id}.html
"([\w\\/]+)\/show-([0-9]+).html" => "index.php?c=show&id=$2",
還有其他規(guī)則嗎,全部發(fā)來看看
開源是一種精神,但不是義務(wù),幫忙是情分,不幫也不要抱怨,建議大家多研究代碼、多閱讀代碼、多翻閱社區(qū)歷史問題!
return [ /***********************下面寫你自己的URL解析規(guī)則********************/ //{pdirname}-{page}.html "([\w\\/]+)-([0-9]+).html" => "index.php?c=category&dir=$1&page=$2", //{pdirname}/ "([\w\\/]+)" => "index.php?c=category&dir=$1", //{pdirname}/show-{id}-{page}.html "([\w\\/]+)\/show-([0-9]+)-([0-9]+).html" => "index.php?c=show&id=$2&page=$3", //{pdirname}/show-{id}.html "([\w\\/]+)\/show-([0-9]+).html" => "index.php?c=show&id=$2", /***********************共享欄目測試規(guī)則:欄目列表頁面分頁的偽靜態(tài)解析*************************/ // "list\-([\w]+)\-([0-9]+).html(.*)" => 'index.php?c=category&dir=$1&page=$2', /***********************共享欄目測試規(guī)則:欄目列表頁面的偽靜態(tài)解析*************************/ // "list\-([\w]+).html(.*)" => 'index.php?c=category&dir=$1', /***********************共享欄目測試規(guī)則:內(nèi)容頁面分頁的偽靜態(tài)解析*************************/ // "show\-([0-9]+)\-([0-9]+).html(.*)" => 'index.php?c=show&id=$1&page=$2', /***********************共享欄目測試規(guī)則:內(nèi)容頁面的偽靜態(tài)解析*************************/ // "show\-([0-9]+).html(.*)" => 'index.php?c=show&id=$1', ////////////////////////////////////////////////////////////////////////////////////// /***********************獨(dú)立模塊測試規(guī)則、共享模塊測試規(guī)則:搜索頁(帶分頁)*************************/ "([a-z]+)\/search\/(.*).html(.*)" => 'index.php?s=$1&c=search&rewrite=$2', /***********************獨(dú)立模塊測試規(guī)則、共享模塊測試規(guī)則:搜索頁(不帶分頁)*************************/ "([a-z]+)\/search.html(.*)" => 'index.php?s=$1&c=search', ////////////////////////////////////////////////////////////////////////////////////// /***********************獨(dú)立模塊測試規(guī)則:模塊首頁的偽靜態(tài)解析*************************/ "([a-z]+).html(.*)" => 'index.php?s=$1', /***********************獨(dú)立模塊測試規(guī)則:欄目列表頁面分頁的偽靜態(tài)解析*************************/ "([a-z]+)\/list\/([0-9]+)\/([0-9]+).html(.*)" => 'index.php?s=$1&c=category&id=$2&page=$3', /***********************獨(dú)立模塊測試規(guī)則:欄目列表頁面的偽靜態(tài)解析*************************/ "([a-z]+)\/list\/([0-9]+).html(.*)" => 'index.php?s=$1&c=category&id=$2', /***********************獨(dú)立模塊測試規(guī)則:內(nèi)容頁面分頁的偽靜態(tài)解析*************************/ "([a-z]+)\/show\/([0-9]+)\/([0-9]+).html(.*)" => 'index.php?s=$1&c=show&id=$2&page=$3', /***********************獨(dú)立模塊測試規(guī)則:內(nèi)容頁面的偽靜態(tài)解析*************************/ "([a-z]+)\/show\/([0-9]+).html(.*)" => 'index.php?s=$1&c=show&id=$2', // sitemap "sitemap.txt" => "index.php?s=sitemap", "sitemap.xml" => "index.php?s=sitemap&c=home&m=xml", "visitorlog" => "index.php?s=visitor&c=home&m=visitor_log", ];/***********************下面寫你自己的URL解析規(guī)則********************/ // sitemap "sitemap.txt" => "index.php?s=sitemap", "sitemap.xml" => "index.php?s=sitemap&c=home&m=xml", "visitorlog" => "index.php?s=visitor&c=home&m=visitor_log", /***********************共享欄目測試規(guī)則:欄目列表頁面分頁的偽靜態(tài)解析*************************/ // "list\-([\w]+)\-([0-9]+).html(.*)" => 'index.php?c=category&dir=$1&page=$2', /***********************共享欄目測試規(guī)則:欄目列表頁面的偽靜態(tài)解析*************************/ // "list\-([\w]+).html(.*)" => 'index.php?c=category&dir=$1', /***********************共享欄目測試規(guī)則:內(nèi)容頁面分頁的偽靜態(tài)解析*************************/ // "show\-([0-9]+)\-([0-9]+).html(.*)" => 'index.php?c=show&id=$1&page=$2', /***********************共享欄目測試規(guī)則:內(nèi)容頁面的偽靜態(tài)解析*************************/ // "show\-([0-9]+).html(.*)" => 'index.php?c=show&id=$1', ////////////////////////////////////////////////////////////////////////////////////// /***********************獨(dú)立模塊測試規(guī)則、共享模塊測試規(guī)則:搜索頁(帶分頁)*************************/ "([a-z]+)\/search\/(.*).html(.*)" => 'index.php?s=$1&c=search&rewrite=$2', /***********************獨(dú)立模塊測試規(guī)則、共享模塊測試規(guī)則:搜索頁(不帶分頁)*************************/ "([a-z]+)\/search.html(.*)" => 'index.php?s=$1&c=search', ////////////////////////////////////////////////////////////////////////////////////// /***********************獨(dú)立模塊測試規(guī)則:模塊首頁的偽靜態(tài)解析*************************/ "([a-z]+).html(.*)" => 'index.php?s=$1', /***********************獨(dú)立模塊測試規(guī)則:欄目列表頁面分頁的偽靜態(tài)解析*************************/ "([a-z]+)\/list\/([0-9]+)\/([0-9]+).html(.*)" => 'index.php?s=$1&c=category&id=$2&page=$3', /***********************獨(dú)立模塊測試規(guī)則:欄目列表頁面的偽靜態(tài)解析*************************/ "([a-z]+)\/list\/([0-9]+).html(.*)" => 'index.php?s=$1&c=category&id=$2', /***********************獨(dú)立模塊測試規(guī)則:內(nèi)容頁面分頁的偽靜態(tài)解析*************************/ "([a-z]+)\/show\/([0-9]+)\/([0-9]+).html(.*)" => 'index.php?s=$1&c=show&id=$2&page=$3', /***********************獨(dú)立模塊測試規(guī)則:內(nèi)容頁面的偽靜態(tài)解析*************************/ "([a-z]+)\/show\/([0-9]+).html(.*)" => 'index.php?s=$1&c=show&id=$2', //{pdirname}/show-{id}-{page}.html "([\w\\/]+)\/show-([0-9]+)-([0-9]+).html" => "index.php?c=show&id=$2&page=$3", //{pdirname}/show-{id}.html "([\w\\/]+)\/show-([0-9]+).html" => "index.php?c=show&id=$2", //{pdirname}-{page}.html "([\w\\/]+)-([0-9]+).html" => "index.php?c=category&dir=$1&page=$2", //{pdirname}/ "([\w\\/]+)" => "index.php?c=category&dir=$1",太多無用的規(guī)則了,太冗余了
開源是一種精神,但不是義務(wù),幫忙是情分,不幫也不要抱怨,建議大家多研究代碼、多閱讀代碼、多翻閱社區(qū)歷史問題!
規(guī)則太多,不太規(guī)范