联系官方销售客服
1835022288
028-61286886
PHP程序里面
微信分享后打开404的问题。
根据文档https://www.xunruicms.com/doc/778.html 配置后
http://www.xxxxx.com/news/100.html 这种.html结尾的 可以正常访问
http://www.xxxxx.com/news/100.html?from=singlemessage&isappinstalled=0
http://www.xxxx.com/news 这种 不带 结尾的页面也可以正常访问。
http://www.xxxx.com/news?from=singlemessage&isappinstalled=0
但是 / 结尾的页面,始终无法访问。
http://www.xxxx.com/news/?from=singlemessage&isappinstalled=0
请教高手, / 结尾的伪静态规则到底怎么写才行呢?
// 自定义页面规则---解析规则----开始 "page\/([\w\\/]+)\/([0-9]+)-([0-9]+).html" => "index.php?s=page&dir=$1&page=$3", //【自定义页面规则】自定义页面(分页)(page/{pdirname}/{id}-{page}.html) "page\/([\w\\/]+).html" => "index.php?s=page&dir=$1", //【自定义页面规则】自定义页面(page/{pdirname}.html) // 自定义页面规则---解析规则----结束 // 共享模块测试规则---解析规则----开始 "([a-z]+)-search\/(.+).html" => "index.php?s=$1&c=search&rewrite=$2", //【共享模块测试规则】模块搜索页(分页)({modname}-search/{param}.html) "([a-z]+)-search.html" => "index.php?s=$1&c=search", //【共享模块测试规则】模块搜索页({modname}-search.html) // 共享模块测试规则---解析规则----结束 // 独立模块测试规则---解析规则----开始 "([a-z]+).html" => "index.php?s=$1", //【独立模块测试规则】模块首页({modname}.html) "([a-z]+)\/list\/([0-9]+)\/([0-9]+).html" => "index.php?s=$1&c=category&id=$2&page=$3", //【独立模块测试规则】模块栏目列表(分页)({modname}/list/{id}/{page}.html) "([a-z]+)\/list\/([0-9]+).html" => "index.php?s=$1&c=category&id=$2", //【独立模块测试规则】模块栏目列表({modname}/list/{id}.html) "([a-z]+)\/show\/([0-9]+)\/([0-9]+).html" => "index.php?s=$1&c=show&id=$2&page=$3", //【独立模块测试规则】模块内容页(分页)({modname}/show/{id}/{page}.html) "([a-z]+)\/show\/([0-9]+).html" => "index.php?s=$1&c=show&id=$2", //【独立模块测试规则】模块内容页({modname}/show/{id}.html) "([a-z]+)\/search\/(.+).html" => "index.php?s=$1&c=search&rewrite=$2", //【独立模块测试规则】模块搜索页(分页)({modname}/search/{param}.html) "([a-z]+)\/search.html" => "index.php?s=$1&c=search", //【独立模块测试规则】模块搜索页({modname}/search.html) // 独立模块测试规则---解析规则----结束 // 共享栏目-单页面---解析规则----开始 "([a-z0-9]+)\/list-([0-9]+).html(.*)" => "index.php?c=category&dir=$1&page=$2", //【共享栏目-单页面】模块栏目列表(分页)({dirname}/list-{page}.html) "([a-z0-9]+)" => "index.php?c=category&dir=$1", //【共享栏目-单页面】模块栏目列表({dirname}) // "([a-z0-9]+)\?(.*)" => "index.php?c=category&dir=$1", //栏目不加/才有效 "([a-z0-9]+)/?(.*)" => "index.php?c=category&dir=$1", //【共享栏目-单页面】模块栏目列表({dirname}) "([a-z0-9]+)\/([0-9]+)-([0-9]+).html" => "index.php?c=show&id=$2&page=$3", //【共享栏目-单页面】模块内容页(分页)({dirname}/{id}-{page}.html) "([a-z0-9]+)\/([0-9]+).html" => "index.php?c=show&id=$2", //【共享栏目-单页面】模块内容页({dirname}/{id}.html) // 共享栏目-单页面---解析规则----结束 // 独立模块规则_栏目页name.html---解析规则----开始 "([a-z]+)\/([a-z0-9]+)\/list-([0-9]+).html" => "index.php?s=$1&c=category&dir=$2&page=$3", //【独立模块规则_栏目页name.html】模块栏目列表(分页)({modname}/{dirname}/list-{page}.html) "([a-z]+)\/([a-z0-9]+).html" => "index.php?s=$1&c=category&dir=$2", //【独立模块规则_栏目页name.html】模块栏目列表({modname}/{dirname}.html) // 独立模块规则_栏目页name.html---解析规则----结束