nginx的wordpress伪静态规则

在nginx配置文件nginx.conf的location段添加一行即可.

location /
{
try_files $uri $uri/ /index.php?q=$uri&$args;
}