Khandaker Toihidul Islam
Front-end Developer
React Js | Javascript | HTML | CSS | Bootstrap | Wordpress | PHP | Mysql

WordPress permalink in Nginx server

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
http://toihid.com/domain-pointing-to-digital-ocean-nginx/

You may also like...

Leave a Reply