Apache 2.4 on Windows 11, thus localhost.
I'm running a Wordpress site and Apache serves all URLs correctly except for one. One URL 404s. The Apache error log contains this error:
AH00687: Negotiation: discovered file(s) matching request: C:/wwwroot/site/the-page; (None could be negotiated)., referer: http://localhost:8090/
How is it possible that Apache can serve all the other PHP pages (Wordpress pages, not posts) and not this one?
What do I need to do to fix this?
The page works in production. I restored the Wordpress database to the localhost in case I had a corruption issue with my local copy, but the problem persists.
Also note, that for all other 404 errors, Apache serves my custom 404 page. For the problem url, it only serves a generic 404 message.
This URL worked as recently as two weeks ago, and restoring the .htaccess file did not fix the problem.