Hi all,
having an issue with my pretty permalink and wordpress. I think it’s an issue with my nginx conf.
Homepage works great Article = 404 WP-admin = 404
Here is my conf: https://github.com/stonedb00/stonedb/blob/master/nginx
Maybe someone have a solution.
Thanks a lot
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Seems this question is so common with Wordpress and Nginx and I think cuz so many tutorials online are assuming that you use Apache in backend of your Nginx…
Anyway just simple fix for permalinks is usually the try_files code:
location / {
try_files $uri $uri/ /index.php?$args;
}
See the full Nginx server block examples
https://github.com/littlebizzy/slickstack/blob/master/nginx/default-single-site.txt
Hello, @StoneDB
Did you installed WordPress manually or you’ve followed our tutorial:
https://www.digitalocean.com/community/tutorials/how-to-install-wordpress-with-lemp-on-ubuntu-18-04
If you believe that the issue is with the nginx configuration file you can use the default nginx configuration file suggested from WordPress support team itself:
https://wordpress.org/support/article/nginx/
Let me know if you have any questions.
Regards, Alex
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.