![]() |
Server Side Includes |
Post Reply
|
| Author | |
oesdistrict20
Newbie
Joined: November/01/2009 Online Status: Offline Posts: 1 |
Quote Reply
Topic: Server Side IncludesPosted: November/01/2009 at 4:49pm |
|
I'm trying to learn to use SSI (Server Side Includes). From what I've been able to figure out, the file with the "include" statement must have an ".shtml" extension. So, in order for my main page to use SSI, I must call it "index.shtml". However, the MasterMason.com server does not seem to like it when I use that for a name. Am I doomed to not use SSI in my main page, or am I not understanding something here?
Thank you for your help. |
|
![]() |
|
dgresh
Moderator Group
Joined: November/05/2007 Location: United States Online Status: Offline Posts: 270 |
Quote Reply
Posted: November/02/2009 at 7:17am |
|
oesdistrict20,
I have sent you a Private Message (PM) regarding this.
---
dgresh
|
|
![]() |
|
dgresh
Moderator Group
Joined: November/05/2007 Location: United States Online Status: Offline Posts: 270 |
Quote Reply
Posted: November/02/2009 at 11:32am |
|
I believe this problem has now been resolved.
For those of you that might be interested in a little background on this ...
Server Side Includes (SSI) are the ability of the host server to examine a web page to determine if it includes any properly structured, recognized commands. If it does, take the commanded action before returning the requested page to the client's browser. This capability is frequently used to include snippets of html into a page (e.g. navigation bar, header or footer) or run a script and include the results.
In order to alert the host that the requested page may include an SSI command, the requested page must use the file extension: .stm, .shtm, or .shtml. The server then parses these pages and executes any valid SSI commands before forwarding the results.
Mastermason.com supports Server Side Includes. When the requested page was named explicitly, it worked exactly as it should. However, we did not have default.xxx and index.xxx in the IIS Default Page list with the three permissible extensions -- .stm, .shtm, and .shtml. This has now been corrected.
Life is good.
P.S. A similar process is used with Active Server Pages (.asp).
---
dgresh
|
|
![]() |
|
Post Reply
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |