R – URL Etiquette

file-extensionstandardsurl

Given my new understanding of the power of "includes" with PHP, it is my guess that ALL of my pages on my site will be .php extension.

Would this be considered strange?

I used to think that most pages would be .htm or .html, but in looking around the net, I am noticing that there really isn't any "standard".

I don't really think I have a choice, if I want to call my menus from a php file. It is just going to be that way, far as I can see… so just bouncing off you all to get a feel for what "real programmers" feel about such issues.

Best Solution

The thing that actually matters to the browser isn't the file's extension; it's the MIME Type that it gets sent in the HTTP headers. Headers are data that gets sent before the actual file and tell what kind of data it is, how big it is, and a bunch of other unimportant junk. You can configure your server to send any file extension as an HTML page, but the most common extensions for HTML pages are .htm, .html, .php, .asp, .aspx, .shtml, .jsp, and several others.

As for it looking "strange", a surprisingly small number of users will actually look at the address bar at all, let alone notice that the file extension is .php instead of .html. I wouldn't worry about it if I were you; it really doesn't make a difference.