页面地址:apps/home/controller/indexController.php
if (P) { // 采用pathinfo模式及p参数伪静态模式
if ($url_rule_type == 2) { // 禁止伪静态时带index.php 和动态地址访问
if(stripos(URL, 'index.php') !== false){
_404('您访问的内容不存在,请核对后重试!');
}
//加入此行参数过滤
if(stripos(URL,'?') !== false && stripos(URL,'/?tag=') == false && stripos(URL,'/?page=') == false && stripos(URL,'/?ext_') == false){
_404('您访问的内容不存在,请核对后重试!');
}
}
建站技术分享网
发表评论