Typecho Nginx Rewrite规则

博客迁移完毕了,以前环境是LAMP,现在是LNMP,需要改下永久链接,做一下记录,其他人也可用!

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

Apache的话,看这篇《Typecho Apache Rewrite规则》

标签: Typecho, Rewrite

添加新评论