WordPress permalink in Nginx server

Posted by

Step 1. Edit /etc/nginx/site-available/example.com
location / {
try_files $uri $uri/ /index.php?q=$uri$args;
step 2 : login to server
step 3. Run this
ln -s /etc/nginx/sites-available/example.com /etc/nginx/sites-enabled/example.com
step 4. Test configuration
sudo nginx -t
step 5. Restart Nginx server
sudo systemctl restart nginx
step 6. Save the permalink from wordpress admin dashboard
*****  Happy browsing **** 

For domain pointing

Leave a Reply