Mt. Moon Community

Full Version: SSI
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I decided to use SSI for the first time today on a new site of mine. For some reason, I can't get it to work. I'm using Freewebs (don't kill me...I'm starting off on a small host because I probably won't ever get big) and in their FAQ it says that they support SSI.

I changed my files .shtml and made a .txt file of what I wanted to include. I used this code to include it on the page I wanted:

<!--#include file="http://www.freewebs.com/coryonline/ssi.txt" -->

Can anyone notice something wrong I did? Thanks for taking the time to read this.
Try the Virtual Argument
<!--#include virtual="/directory/included.html" -->
The File Argument works faster and more efficient than virtual. And it's not the whole URL you type, it's just the location. Typing the whole entire URL gives you SSI errors.
Dark Vesuvius, I was having the same problem when I was at freewebs, but I know what you did wrong....ON FREEWEBS, in SSI, you should have all your files as HTML, not SHTML. It sounds silly, but trust me, that's how it works with freewebs
SHTML and HTML work the same way... They're both mapped to serve the same exact content. SHTML so you know is more efficient than HTML.
Tyler Wrote:Try the Virtual Argument
<!--#include virtual="/directory/included.html" -->

It worked! Thank you so much, everyone! =D
I would reccomend using:
Code:
<?PHP
include("top here")
?>
Content here
<?PHP
include("bottom here")
?>
I like it better but what ever works best for you
Um Freewebs doesnt allow php
You can't use PHP on freewebs...O.o
Yes, and plus I've already got SSI working. =P

Thanks, though!
Reference URL's