Thread: SHTML anyone ?
View Single Post
Old 01-07-2014, 09:26 AM  
blackmonsters
Making PHP work
 
blackmonsters's Avatar
 
Industry Role:
Join Date: Nov 2002
Location: 🌎🌅🌈🌇
Posts: 20,765
Quote:
Originally Posted by Due View Post
Is this still used ? I had completely forgotten it existed.
I just found it in cpanel, seeing the tag instantly made me feel like I was 15 years younger than I am
The only reason the shtml exist is so that a server can be set up to only scan for server side includes on shtml pages. This saves resources from scanning every html page for SSI.

It's still being used but this is the difference :

AddType text/html .shtml
AddHandler server-parsed .shtml
Options Indexes FollowSymLinks Includes


The htaccess code above it how you set up normal shtml

People just do it this way now more often :

AddHandler server-parsed .html
Options Indexes FollowSymLinks Includes


The above code does the same thing but now you don't use any .shtml files.

Nothing has changed.

An SSI(shtml) include is just the same as any php include, except php is slower than any other code used for an include.

So using shtml may be out of style with the chic URL crew but it saves resources and google likes it just fine.
blackmonsters is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote