Jump to content

Recommended Posts

why name pages with different extensions when it comes to php,html,htm,shtml

 

i mean if you have a php page youve stilll gotta use <?php ?> tags within php coding as you would with shtml pages

 

whats the point!

 

I can understand renaming html to shtml considering shtml pages are text based, meaning better indexing, but php still boggles my fragile little mind..?!!?

 

 

Apache is generally configured to only run files with the .php extension through the PHP interpreter. You can configure it to parse .html files too, but why waste system resources on files that aren't going to require it?

 

I guess there are a number of reasons, efficiency (as outlined above), ease of identifying a files content without opening it, files can automatically be opened in an application that supports it without a "middleman" checking the file first to find a suitable app based on its content, et cetera.

I can understand renaming html to shtml considering shtml pages are text based

 

The difference between .html and .shtml is that the latter will support SSI (Server-side includes), .html will not. It will be like that on standard configurations at least.

HTML may rank better with SE's, but even then you have to rewrite it, since index.html?page=home isn't any better than the PHP equivalent.

 

SemiApocalyptic is right about the performance, but I find I never have any straight html pages anyway.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.