WordPress Permalinks With Nginx

r00t September 29, 2014

Nginx-Logo

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.

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.

permalink-nginx-conf

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!
Share on Google+1Share on Facebook0Tweet about this on TwitterShare on Tumblr0Share on StumbleUpon1Share on Reddit1Pin on Pinterest1
The Tags:

Leave a Comment