WordPress Permalink in Nginx

·

To set up pretty permalink in wordpress in a LEMP environment add the following line inside location / block:

nano /etc/nginx/sites-available/example.com
try_files $uri $uri/ /index.php?q=$uri&$args;

Off course you should remove try_files if there is any inside location / block.

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *