Brandon Luhring
(Indiana, USA)
Posted: 09/10/2007, 19:50:32
Gav's suggestion is the best thing for a quick and easy solution in PHP.
However, it does prove a valuable point that using a full file-structure with default names could be a good move...
so if you had this:
/products/prod1.htm
/products/prod2.htm
/products/prod3.htm
It would be better to use additional directories like this:
/products/prod1/index.htm
/products/prod2/index.htm
/products/prod3/index.htm
Doing so would allow you to link without "index.htm", and then switching from .htm to anything else would be much less of an issue.
Then, of course, with any server-side technology, you could consider URL Rewriting as a very plausible solution.
http://en.wikipedia.org/wiki/Rewrite_engine