Nginx and wordpress permalinks

In order to have modified wordpress permalinks working on NGinx, you have to add a « try_files » line in the location block of the config file:

        location / {
                index index.php;
                # a trick for Wordpress
                try_files $uri $uri/ /index.php?$args;
                }

Leave a Reply