Posted by Michael Fesser on 12/05/07 21:20
..oO(Ivan Marsh)
>On Wed, 05 Dec 2007 19:40:29 +0000, Gary Hasler wrote:
>
>> I want apache to parse all .html files for php code.
>
>May I ask why files that contain PHP code are being named .html and not
>.php?
Some things simply don't belong to a URL.
Cool URIs don't change
http://www.w3.org/Provider/Style/URI
| What to leave out
| [...]
| * File name extension. This is a very common one. "cgi", even ".html"
| is something which will change. You may not be using HTML for that
| page in 20 years time, but you might want today's links to it to
| still be valid. The canonical way of making links to the W3C site
| doesn't use the extension.
| * Software mechanisms. Look for "cgi", "exec" and other give-away
| "look what software we are using" bits in URIs. Anyone want to
| commit to using perl cgi scripts all their lives? Nope? Cut out the
| .pl. Read the server manual on how to do it.
Micha
[Back to original message]
|