迅睿CMS框架是一款PHP8高性能·簡單易用的CMS開源開發(fā)框架,基于MIT開源許可協(xié)議發(fā)布,免費且不限制商業(yè)使用,是免費開源的產(chǎn)品,以萬端互聯(lián)為設(shè)計理念,支持的微信公眾號、小程序、APP客戶端、移動端網(wǎng)站、PC網(wǎng)站等多終端式管理系統(tǒng)。
聯(lián)系官方銷售客服
1835022288
028-61286886
偽靜態(tài)下面,模塊/index.html 可以正常打開,不帶index.htm就提示沒有找到這個頁面
這個該怎么改?
就類似http://www.123com/topic/ 打不開
http://www.123com/topic/index.html 能打開
rewirte.php規(guī)則是怎么寫的
"([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}-zffd5j7hlbj/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}-zffd5j7hlbj/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}-zffd5j7hlbj/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}-zffd5j7hlbj/show-{id}-p{page}.html)
【獨立靜態(tài)】模塊首頁({modname}/index.html)應(yīng)該改成 {modname},為什么要加index.html
rewirte.php規(guī)則是怎么寫的
"([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}-zffd5j7hlbj/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}-zffd5j7hlbj/show-{id}-p{page}.html)
沒有寫不帶index.html的規(guī)則 不知道怎么寫
【獨立靜態(tài)】模塊首頁({modname}/index.html)應(yīng)該改成 {modname},為什么要加index.html