lnmp集成环境wordpress伪静态配置

配置文件位置为/usr/local/nginx/conf/vhost/对应域名

添加如下代码

location / {
 # This is cool because no php is touched for static content.
 # include the "?$args" part so non-default permalinks doesn't break when using query string
 try_files $uri $uri/ /index.php?$args;
}

重启服务器即可!

nginx服务器配置:https://codex.wordpress.org/Nginx

如果您觉得本文对您有用,欢迎捐赠或留言~
微信支付
支付宝

发表评论

您的电子邮箱地址不会被公开。 必填项已用 * 标注