Nginx Wordpress pretty permalink rewrite
Lot's of Apache examples out there but not really any Nginx ones, create a rewrite.conf in the conf folder and stick this in it
 if (!-e $request_filename) {            rewrite ^(.+)$ /index.php?q=$1 last;        }
Now in your virtual host file you will want to do the following
 location / {        root  /var/www/wordpress; # absolute path to your WordPress installation        index index.php index.html index.htm;        include permalink_rewrite.conf;    }
Also serving static files that exist but doesn't break other rewrite tests
    if (-f $request_filename) {            expires 30d;            break;
Now go ahead and reload Nginx and you should be rocking











