WordPress Permalinks With Nginx

WordPress Permalinks With Nginx

In this tutorial we will show you how to changes WordPress Permalinks With Nginx. For those of you who didn’t know, If you are using WordPress on Apache (with mod_rewrite), WordPress will automatically add the required rewrite rules to your .htaccess file for permalinks to work. But for nginx, you have to add the rules manually.

This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo’ to the commands to get root privileges. I will show you through the step by step WordPress Permalinks With Nginx web server.

Before applying this WordPress Nginx Permalinks Rewrite you need to make sure you change your permalink structure from “Day and Name” to “Post name” in WordPress dashboard.

WordPress Permalinks With Nginx
wordpress permalink

Here’s step-by-step changes WordPress pretty permalinks with Nginx:

Add the following Nginx rewrite rule in your vhost:

After you have finished making the changes in the configuration file, reload the nginx configuration:

WordPress’ pretty permalinks should work fine now.

Congratulation’s! You have successfully configure wordpress permalink. Thanks for using this tutorial for configuring wordpress permalink with nginx in CentOS system. For additional help or useful information, we recommend you to check the official Nginx web site.

VPS Manage Service Offer
If you don’t have time to do all of this stuff, or if this is not your area of expertise, we offer a service to do “VPS Manage Service Offer” installation, starting from $10 (Paypal payment). Please contact us to get a best deal!