Forum Moderators: mack

Message Too Old, No Replies

Save files as .php or .html?

         

kenfused

9:32 pm on Aug 8, 2005 (gmt 0)

10+ Year Member



hello,

Over the last year or so, since I've been using more PHP, I have started to use the .php extension for all my newer webpages, and slowly converting my older .html pages into .php (even if they don't run any scripts yet).

Recently I read a recommendation to use .html in all pages (OR have PHP files that are .htaccess'd "into" html).

Are there any major benefits, search engine wise, or otherwise to have pages linked as .html (whether they are "real" html vs. PHP pages?)

Hopefully this question isn't too confusing!

John Carpenter

11:36 pm on Aug 8, 2005 (gmt 0)

10+ Year Member



Recently I read a recommendation to use .html in all pages

May I ask why they recommended that and who they were?

bill

2:38 am on Aug 9, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



We have a thread going on right now about this very topic that you might find interesting: which file extension .htm .html .php [webmasterworld.com]

John Carpenter

11:34 pm on Aug 9, 2005 (gmt 0)

10+ Year Member



Thanks for the heads up, bill.

kenfused

5:14 am on Aug 13, 2005 (gmt 0)

10+ Year Member



THanks for the thread bill...

The person I had heard from about using HTML was to keep it standardized in-case PHP "goes out of style", also, for security purposes he thought it was safer if no one knew what you were scripting in.

John Carpenter

11:43 am on Aug 13, 2005 (gmt 0)

10+ Year Member



for security purposes he thought it was safer if no one knew what you were scripting in.

Actually, this doesn't increase the security much. All it can give you is a false sense of security.