RE: [PHP] files with html extension

From: Date: Tue, 20 Mar 2001 18:49:02 +0000
Subject: RE: [PHP] files with html extension
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-44797@lists.php.net to get a copy of this message
I agree with Phill, don't make all your HTML into PHP unless you aint got much - but hey if you aint got much then you can fix the real problem! soapbox: { The issue here seems to derive from the fact that all the internal HREFs point to xxx.html This is exactly why http://www.w3.org recommend that you DONT SPECIFY A FILE TYPE TYPE in your HREFs. Cool URIs Dont change - http://www.w3.org/Provider/Style/URI Good!! <A HREF=/somepage >Some Page!</A> NOT good! <A HREF=/somepage.html >Some Page!</A> ^^^^^ Let the server decide which page to dish. Then it's easy peasy to replace xxx.html with xxx.php or even xxx.my_new_language_of_the_moment. }; Jeff -----Original Message----- From: Phillip Bow [mailto:philb@oreilly.com] Sent: Tuesday, March 20, 2001 6:35 PM To: php-general@lists.php.net Subject: Re: [PHP] files with html extension Personally I recommend people don't do this unless their web server is going to serve only(or mostly) php pages, and very few straight html pages. It will save you time mucking around on the server, but the increase in overhead isn't really worth it. IMHO of course. -- phill

« previous php.general (#44797) next »