AMH部署typecho:404错误

AMH建站面板不好用,要操作方便 运行稳定 还得是宝塔!

按路径打开 并修改nginx配置:/home/wwwroot/lnmp01/vhost/你的域名.conf
找到:
location ~ .*\.php$

修改为:

location ~ .*\.php(\/.*)*$

按路径打开 并修改重写规则:/home/wwwroot/lnmp01/rewrite/amh.conf

if (-f $request_filename/index.php){
    rewrite (.*) $1/index.php;
}
if (!-f $request_filename){
    rewrite (.*) /index.php;
}

Comment