WordPress rewrite for Nginx
Add the following line to Nginx site defintion:
try_files $uri $uri/ /index.php?$args;
Example:
root /www/htdocs/site.tld; index index.php index.html; try_files $uri $uri/ /index.php?$args; location ~ \.php$ { include /etc/nginx/fastcgi_params; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php;
Recent Comments