Wordpress + NGINX : plain permalinks without rewrite
mercoledì, 30 aprile 2008 | di Gianluca | Archiviato in Tech
In order to get perfect permalinks with Engine X ( NGINX ) web server, without that ugly leading “index.php” in the address, it would be enough to add these lines in the vhost configuration for the domain where you run wordpress
location / {
error_page 404 = //index.php?q=$uri;
}
Then go straight to Settings -> Permalinks within the wordpress admin, and select a custom scheme where you’ll remove that /index.php/ stuff and leave the standard apache permalink structure … and you’re done.