Welcome to WebmasterWorld Guest from 23.22.140.143

Forum Moderators: brotherhood of lan & mack

Message Too Old, No Replies

shtml vice html - whats the difference

     
2:21 am on Nov 3, 2002 (gmt 0)

Full Member

10+ Year Member

joined:Jan 28, 2002
posts:240
votes: 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?
3:22 am on Nov 3, 2002 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member lorax is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Mar 31, 2002
posts:7575
votes: 0


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

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

4:15 am on Nov 3, 2002 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Apr 3, 2001
posts:1609
votes: 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.

2:42 pm on Nov 3, 2002 (gmt 0)

Full Member

10+ Year Member

joined:Jan 28, 2002
posts:240
votes: 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.

2:48 pm on Nov 3, 2002 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member lorax is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Mar 31, 2002
posts:7575
votes: 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.
2:49 pm on Nov 3, 2002 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Mar 10, 2001
posts:748
votes: 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.

6:30 pm on Nov 3, 2002 (gmt 0)

Administrator

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

joined:July 24, 2001
posts:15755
votes: 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

7:08 pm on Nov 3, 2002 (gmt 0)

Full Member

10+ Year Member

joined:Jan 28, 2002
posts:240
votes: 0


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

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members