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
如果您觉得本文对您有用,欢迎捐赠或留言~
- 本博客所有文章除特别声明外,均可转载和分享,转载请注明出处!
- 本文地址:https://www.leevii.com/?p=72