WordPress permalinks Nginx

Step 1: Change Permanent link in BLOG

Open the WordPress blog Admin and goto setting->permanent and choose the setting and save the blog


Step 2: Configure NGINX

Select config on your Nginx using following commends

sudo nano /etc/nginx/sites-available/example.com

Replace following on the configuration file and save it

 location / {
     try_files $uri $uri/ /index.php?$args;

Then restart Nginx

sudo service nginx restart

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s