Report this

What is the reason for this report?

Nonexistent urls redirect to my homepage | WordPress LEMP

Posted on January 20, 2021

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?

For reference, here is my site: https://sequential.design/whatisthis/ https://sequential.design/holyhamster/ https://sequential.design/put anything here/

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.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.