typecho在Nginx环境下的rewrite规则

location / {
    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 (.*) /index.php;
    }
}

标签:typecho, Nginx, rewrite

已有 2 条评论

  1. 没用过typecho,比wp好用吗

    1. @centos
      Typecho属于轻量级的,相对来说WP比较臃肿 ^_^

添加新评论