以前有篇文章是介绍在Apache、Lighttpd及IIS网站服务器平台上设置wordpress永久固定链接方法的文章,好像就漏掉了Nginx平台下的,今天百度Google淘了篇Nginx平台下设置wordpress永久固定链接伪静态方法,具体需要做:
打开Nginx配置文件Nginx.conf,在location段添加下面这一行代码:
vim /usr/local/Nginx/conf/Nginx.conf
在server容器中添加下面这几行
location /
{
try_files $uri $uri/ /index.PHP?q=$uri&$args;
}
最后重启Nginx