I have a weird problem with an nginx server I'm working on. I am trying to set up a small, static HTML web page in a sub directory. The server is working, as it's happily serving other sites (all of whcih are Wordpress based). The problem seems to be that when I add my content, for whatever reason I have to explicitly navigate to index.html, rather than having it redirect.

If I go to:


I get the desired page.

However, if I call:


I get a Not Found error:

"Not Found

The requested URL /subdirectory/ was not found on this server."

Note that I don't have CPanel access to this server, and it's also running nginx. How can I make this redirect work correctly?

  • Check the nginx configuration. The default document name(s) can be set to any value. It's probably set to index.php. – Daniel B Apr 3 '17 at 19:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.