I’ve installed WordPress on a LEMP stack. When I go to a nonexistent url, I’m redirected to my site’s homepage. I don’t want this to happen. I want a nonexistent url to redirect to WordPress’s 404 page.
How can I get this to work on a LEMP stack?
I used the Digital Ocean tutorials to set up my droplet and this specific tutorial, https://www.digitalocean.com/community/tutorials/how-to-install-wordpress-with-lemp-on-ubuntu-20-04, to install WordPress on my site, so my server settings are all standard.
I should mention that enabling pretty permalinks gets rid of this issue, but I want to use ugly permalinks.
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!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.