迅睿開源框架是一款PHP8高性能·簡單易用的PHP開源開發(fā)框架, 基于MIT開源許可協(xié)議發(fā)布,不限制商業(yè)使用,以多端互聯(lián)為設(shè)計理念, 支持的微信公眾號、小程序、APP客戶端、移動端網(wǎng)站、PC網(wǎng)站等多終端式管理系統(tǒng)。
業(yè)務(wù)經(jīng)理
微信掃描以上二維碼
028-61286886
技術(shù)咨詢
偽靜態(tài)下面,模塊/index.html 可以正常打開,不帶index.htm就提示沒有找到這個頁面
這個該怎么改?
就類似http://www.123com/topic/ 打不開
http://www.123com/topic/index.html 能打開
rewirte.php規(guī)則是怎么寫的
開源是一種精神,但不是義務(wù),幫忙是情分,不幫也不要抱怨,建議大家多研究代碼、多閱讀代碼、多翻閱社區(qū)歷史問題!
"([a-z]+)\/index\.html" => "index.php?s=$1", //【獨立靜態(tài)】模塊首頁({modname}/index.html)
"([a-z]+)\/([\w\\/]+)\/list-([0-9]+)-p([0-9]+)\.html" => "index.php?s=$1&c=category&dir=$2&page=$4", //【獨立靜態(tài)】模塊欄目列表(分頁)({modname}/{pdirname}/list-{id}-p{page}.html)
"([a-z]+)\/([\w\\/]+)\/list-([0-9]+)\.html" => "index.php?s=$1&c=category&dir=$2", //【獨立靜態(tài)】模塊欄目列表({modname}/{pdirname}/list-{id}.html)
"([a-z]+)\/s\/(.+)\.html" => "index.php?s=$1&c=search&rewrite=$2", //【獨立靜態(tài)】模塊搜索頁(分頁)({modname}/search/{param}.html)
"([a-z]+)\/s\.html" => "index.php?s=$1&c=search", //【獨立靜態(tài)】模塊搜索頁({modname}/search.html)
"([a-z]+)\/([\w\\/]+)\/([0-9]+)-([0-9]+)-([0-9]+)\/show-([0-9]+)\.html" => "index.php?s=$1&c=show&id=$6", //【獨立靜態(tài)】模塊內(nèi)容頁({modname}/{pdirname}/{y}-{m}-kcueqe4/show-{id}.html)
"([a-z]+)\/([\w\\/]+)\/([0-9]+)-([0-9]+)-([0-9]+)\/show-([0-9]+)-p([0-9]+)\.html" => "index.php?s=$1&c=show&id=$6&page=$7", //【獨立靜態(tài)】模塊內(nèi)容頁(分頁)({modname}/{pdirname}/{y}-{m}-iwkseqc/show-{id}-p{page}.html)
沒有寫不帶index.html的規(guī)則 不知道怎么寫
"([a-z]+)" => "index.php?s=$1", //【獨立靜態(tài)】模塊首頁({modname}/index.html) "([a-z]+)\/index\.html" => "index.php?s=$1", //【獨立靜態(tài)】模塊首頁({modname}/index.html) "([a-z]+)\/s\/(.+)\.html" => "index.php?s=$1&c=search&rewrite=$2", //【獨立靜態(tài)】模塊搜索頁(分頁)({modname}/search/{param}.html) "([a-z]+)\/s\.html" => "index.php?s=$1&c=search", //【獨立靜態(tài)】模塊搜索頁({modname}/search.html) "([a-z]+)\/([\w\\/]+)\/list-([0-9]+)-p([0-9]+)\.html" => "index.php?s=$1&c=category&dir=$2&page=$4", //【獨立靜態(tài)】模塊欄目列表(分頁)({modname}/{pdirname}/list-{id}-p{page}.html) "([a-z]+)\/([\w\\/]+)\/list-([0-9]+)\.html" => "index.php?s=$1&c=category&dir=$2", //【獨立靜態(tài)】模塊欄目列表({modname}/{pdirname}/list-{id}.html) "([a-z]+)\/([\w\\/]+)\/([0-9]+)-([0-9]+)-([0-9]+)\/show-([0-9]+)\.html" => "index.php?s=$1&c=show&id=$6", //【獨立靜態(tài)】模塊內(nèi)容頁({modname}/{pdirname}/{y}-{m}-e4uuqea/show-{id}.html) "([a-z]+)\/([\w\\/]+)\/([0-9]+)-([0-9]+)-([0-9]+)\/show-([0-9]+)-p([0-9]+)\.html" => "index.php?s=$1&c=show&id=$6&page=$7", //【獨立靜態(tài)】模塊內(nèi)容頁(分頁)({modname}/{pdirname}/{y}-{m}-6seuequ/show-{id}-p{page}.html)
【獨立靜態(tài)】模塊首頁({modname}/index.html)應(yīng)該改成 {modname},為什么要加index.html
rewirte.php規(guī)則是怎么寫的
開源是一種精神,但不是義務(wù),幫忙是情分,不幫也不要抱怨,建議大家多研究代碼、多閱讀代碼、多翻閱社區(qū)歷史問題!
"([a-z]+)\/index\.html" => "index.php?s=$1", //【獨立靜態(tài)】模塊首頁({modname}/index.html)
"([a-z]+)\/([\w\\/]+)\/list-([0-9]+)-p([0-9]+)\.html" => "index.php?s=$1&c=category&dir=$2&page=$4", //【獨立靜態(tài)】模塊欄目列表(分頁)({modname}/{pdirname}/list-{id}-p{page}.html)
"([a-z]+)\/([\w\\/]+)\/list-([0-9]+)\.html" => "index.php?s=$1&c=category&dir=$2", //【獨立靜態(tài)】模塊欄目列表({modname}/{pdirname}/list-{id}.html)
"([a-z]+)\/s\/(.+)\.html" => "index.php?s=$1&c=search&rewrite=$2", //【獨立靜態(tài)】模塊搜索頁(分頁)({modname}/search/{param}.html)
"([a-z]+)\/s\.html" => "index.php?s=$1&c=search", //【獨立靜態(tài)】模塊搜索頁({modname}/search.html)
"([a-z]+)\/([\w\\/]+)\/([0-9]+)-([0-9]+)-([0-9]+)\/show-([0-9]+)\.html" => "index.php?s=$1&c=show&id=$6", //【獨立靜態(tài)】模塊內(nèi)容頁({modname}/{pdirname}/{y}-{m}-kcueqe4/show-{id}.html)
"([a-z]+)\/([\w\\/]+)\/([0-9]+)-([0-9]+)-([0-9]+)\/show-([0-9]+)-p([0-9]+)\.html" => "index.php?s=$1&c=show&id=$6&page=$7", //【獨立靜態(tài)】模塊內(nèi)容頁(分頁)({modname}/{pdirname}/{y}-{m}-iwkseqc/show-{id}-p{page}.html)
沒有寫不帶index.html的規(guī)則 不知道怎么寫
"([a-z]+)" => "index.php?s=$1", //【獨立靜態(tài)】模塊首頁({modname}/index.html) "([a-z]+)\/index\.html" => "index.php?s=$1", //【獨立靜態(tài)】模塊首頁({modname}/index.html) "([a-z]+)\/s\/(.+)\.html" => "index.php?s=$1&c=search&rewrite=$2", //【獨立靜態(tài)】模塊搜索頁(分頁)({modname}/search/{param}.html) "([a-z]+)\/s\.html" => "index.php?s=$1&c=search", //【獨立靜態(tài)】模塊搜索頁({modname}/search.html) "([a-z]+)\/([\w\\/]+)\/list-([0-9]+)-p([0-9]+)\.html" => "index.php?s=$1&c=category&dir=$2&page=$4", //【獨立靜態(tài)】模塊欄目列表(分頁)({modname}/{pdirname}/list-{id}-p{page}.html) "([a-z]+)\/([\w\\/]+)\/list-([0-9]+)\.html" => "index.php?s=$1&c=category&dir=$2", //【獨立靜態(tài)】模塊欄目列表({modname}/{pdirname}/list-{id}.html) "([a-z]+)\/([\w\\/]+)\/([0-9]+)-([0-9]+)-([0-9]+)\/show-([0-9]+)\.html" => "index.php?s=$1&c=show&id=$6", //【獨立靜態(tài)】模塊內(nèi)容頁({modname}/{pdirname}/{y}-{m}-e4uuqea/show-{id}.html) "([a-z]+)\/([\w\\/]+)\/([0-9]+)-([0-9]+)-([0-9]+)\/show-([0-9]+)-p([0-9]+)\.html" => "index.php?s=$1&c=show&id=$6&page=$7", //【獨立靜態(tài)】模塊內(nèi)容頁(分頁)({modname}/{pdirname}/{y}-{m}-6seuequ/show-{id}-p{page}.html)開源是一種精神,但不是義務(wù),幫忙是情分,不幫也不要抱怨,建議大家多研究代碼、多閱讀代碼、多翻閱社區(qū)歷史問題!
【獨立靜態(tài)】模塊首頁({modname}/index.html)應(yīng)該改成 {modname},為什么要加index.html
開源是一種精神,但不是義務(wù),幫忙是情分,不幫也不要抱怨,建議大家多研究代碼、多閱讀代碼、多翻閱社區(qū)歷史問題!