About special link

Posted on 2003-02-22
Medium Priority
Last Modified: 2010-04-09
I saw that some file name is xxx.shtml.
What is the different between shtml and html?
And some link have not filename. for example:
what is the target file of this link?
Question by:hikarutam
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
LVL 33

Expert Comment

ID: 8002000
A file with the extension .SHTML means it utilizes Server-Side Includes (SSI) which enables a web developer to insert HTML (by using an SSI command) across a whole website.

>>And some link have not filename
There's actually a file running just that it is the default file. Example, if the default file is index.asp, then http://www.myserver.com/news/ will actually run http://www.myserver.com/news/index.asp


Author Comment

ID: 8002064
I am using IIS..i also using SSI command
<!--include virtual file='header.htm'-->
but my file name is xxx.html, just no using xxx.shtml.
LVL 33

Expert Comment

ID: 8002081
You uses SSI does not mean all pages got to be in shtml.

Author Comment

ID: 8002122
I mean the file name must be xxx.shtml when i use SSI command? otherwise, the web server will not run the SSI command?? if i use xxx.html, it will have problem??

Accepted Solution

gator4life earned 150 total points
ID: 8002222
hikarutam -

This is directly from Microsoft's MSDN Library:

"The file containing the #include directives must use a file name extension that is mapped to the SSI interpreter; otherwise, the Web server will not process the directives. By default, the extensions .stm, .shtm, and .shtml are mapped to the interpreter (Ssinc.dll). If you have Internet Services Manager installed, you can modify the default extension mappings and add new mappings; see Setting Application Mappings. Included files can have any file name extension, but a recommended practice is to give them the .inc extension."

So, you can see that .stm, .shtm, and .shtml are just default extensions for interpreter.  In many projects that I have worked on, we have always used .inc for our SSI files, since it's meaning is easily understood: it's an included file.  Since .htm and .html are generally used to signify client-side HTML files, and NOT server-side includes, it is good programming practice NOT to use this extension on the server-side.

Hope this information helps.

(chomp, chomp)

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
Suggested Courses

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question