nginx服务器设置

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

文章路径自定义

/{category}/{cid}.html

独立页面路径

/{slug}.html

分类路径

/{slug}/

标签: typecho

评论已关闭