The ability to set permalinks is essential to make your urls prettier. Instead of having links with post ids such as /?id=123, it’s much nicer to have /link_to_my_post. To my surprise it was a lot simpler than Apache. However, it did take a bit more digging to find the answer. Simply edit your Nginx server config file or your host config file for the specific domain you wish to enable it and add the following line:
Bash
location / {
# Comment original line
#try_files $uri $uri/ =404;
# This line enables permalinks in WordPress
try_files $uri $uri/ /index.php?$args;
}
And viola. Restart your Nginx service and then enable Permalinks within WordPress. You should now have nice looking urls.
References