新程序 发表于 2025-5-8 21:27:09

MIP动态泛程序,无后台,无数据库







伪静态规则

rewrite ^/image/(.*).(jpg|png)$ /mip/data/image/$1.$2 last;
if (-f $request_filename/index.html){
rewrite (.*) $1/index.html break;
}
if (-f $request_filename/index.php){
rewrite (.*) $1/index.php;
}

if (!-f $request_filename){
    rewrite (.*) /mip/mip.php;
}
使用说明:

无需数据库,php7.2版本

修改mip.php(路径:mip/mip.php)文件才能打开内页泛



第28行代码

require_once $_SERVER['DOCUMENT_ROOT'] . '/mip/data/admin.php';
$allfangxing = 0;
$uafangxing = 0;
$ipfangxing = 1;


改成为0即可访问内页, $ipfangxing = 0;

页: [1]
查看完整版本: MIP动态泛程序,无后台,无数据库