I need to create a file for a particular site that leaves off the ".html" when entered into the browser e.g. "mydomain.com/example." When I do this on most sites I work on, there's no problem. But on one site, leaving off the .html causes the file to not be found ... and adding it back in, you're able to locate the page.
Why is this? What's the solution?
Without an extension, most servers will not know how to handle a file. The way many folks solve the issue is to create a directory, "example" below the site root and put a file with a default filename (index.html) into it. You can also use url rewriting
Create a folder in your local site called "example"
Place an index.html page inside that folder.
Result: yourdomain.com/example = yourdomain.com/example/index.html