level 1
wordpress设置伪静态,404报错
部署好了之后直接在设置,固定链接里面改成/%postid%.html保存
保存后在文章那里看链接是变成.html的链接了,但是点击文章链接404错误。找不到页面,是不是哪一步操作我没有做啊?
2018年06月28日 06点06分
1
level 14
目前我的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;
}
}
rewrite /wp-admin$ $scheme://$host$uri/ permanent;
2018年06月29日 06点06分
3