问题:在刚搭建typecho时,会发现typecho主题自带404页面无法使用,始终会跳转到nginx默认的404页面
Nginx默认404页面
设置网站伪静态
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php$1 last;
}
再次查看404页面已经跳转为Typecho主题404页面
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php$1 last;
}
再次查看404页面已经跳转为Typecho主题404页面
1 条评论
٩(ˊᗜˋ*)و