homepage Welcome to WebmasterWorld Guest from 54.237.213.31
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / WebmasterWorld / New To Web Development
Forum Library, Charter, Moderators: brotherhood of lan & mack

New To Web Development Forum

    
shtml vice html - whats the difference
lazyz

10+ Year Member



 
Msg#: 158 posted 2:21 am on Nov 3, 2002 (gmt 0)

I'm running a script that requires the index page to be named .shtml? what is the difference between html and shtml and does my server need to be configured?

 

lorax

WebmasterWorld Administrator lorax us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 158 posted 3:22 am on Nov 3, 2002 (gmt 0)

SHTML is the common extension used to denote a file that uses Server Side Includes.

Learn more here: [apacheweek.com...]

john316

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 158 posted 4:15 am on Nov 3, 2002 (gmt 0)

<html>
<head>
<title>Test</title>
</head>
<body>
<!--#echo var="DATE_LOCAL" -->
</body>
</html>

Copy and paste this into a text file, save it as test.shtml or something like that, put it on your server and call it from a browser.

If it shows the date, ssi is enabled on your server.

lazyz

10+ Year Member



 
Msg#: 158 posted 2:42 pm on Nov 3, 2002 (gmt 0)

Thank you -

One more question, is it common to make an index page index.shtml versus .html? My main page needs to use SSI.

lorax

WebmasterWorld Administrator lorax us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 158 posted 2:48 pm on Nov 3, 2002 (gmt 0)

Well, it's not that far out of the ordinary. The SEs will receive the page as if it had no includes and as far as I know, there is no disadvantage to doing this.

bobriggs

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 158 posted 2:49 pm on Nov 3, 2002 (gmt 0)

You can name it .html:

[httpd.apache.org...]
Add:

AddHandler server-parsed .html

in your .htaccess file and they'll all be parsed as a server side include.

jatar_k

WebmasterWorld Administrator jatar_k us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 158 posted 6:30 pm on Nov 3, 2002 (gmt 0)

Having an shtml index page is perfectly acceptable and not uncommon.

When using addhandler, remember to make sure you only try to parse one lang/protocol for each extension. I have seen people try to get ssi and php both parsed for the .html extension, makes one heck of a mess. I use

.shtml // for ssi
.html // for php
.htm // for plain vanilla html

lazyz

10+ Year Member



 
Msg#: 158 posted 7:08 pm on Nov 3, 2002 (gmt 0)

Thanks to everyone! It works great! I feel a little smarter today!

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / WebmasterWorld / New To Web Development
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved