I am developing a relatively static website, where I want to be able to access each page without typing .html (or .htm or .xhtml ...) at the end (
I am developing using the Apache 2.2 server (in OSX). Links like the above work just fine. No monkeying around with
mod_rewrite, they just work.
However, on my actual web host (fatcow.com) this does not work (a link to
/about just raises a 404 error). I've called them and they don't seem to know what is going on... or particularly think it is their problem. They are using Apache 2.0.
What is going on here and what is the best method for getting around it? I'd prefer a solution that didn't involve adding a
mod_rewrite entry for each of my pages, but if that is needed how would I do that?
For reference, if I do go with a
mod_rewrite solution it would look like:
RewriteEngine On RewriteBase / RewriteRule ^about$ /about.html #and so on, for each page