解决typecho rewrite 规则
chatGPT+Qwen3.2
搞了几天没有结果,然后搜到了,改了以后果然正常了
nginx站点配置文件写入对应规则
rewrite 规则:
location /blog/ {
if (!-e $request_filename) {
rewrite ^(.*)$ /blog/index.php$1 last;
}
}
nginx禁止sqlite文件被下载
location ~ (.db)$ {
return 404;
}
其他调优,请参考链接
https://www.goao.net/blog/article-7.html