I am using Apache to serve a blog which consists of static HTML files. Currently, the blog uses a pretty standard URL structure, like this:
/2010/03/21/my-awesome-blog-post/
which maps to the file
/2010/03/21/my-awesome-blog-post/index.html
using Apache's mod_dir
.
I'd like to remove the trailing slash so that URLs like
/2010/03/21/my-awesome-blog-post
work in the same way (and don't get redirected). Is there a way to do that with Apache?
(Note that I want URLs with the trailing slash to continue to work, as well.)
(Further note: I saw something about Apache's DirectorySlash
directive, but I don't think it does what I want … although I'm not sure about that.)