View Full Version : Server Side Includes
how do i using SSI?
how can i set it up, tell me more about it :)
sdbarker
6-13-02, 10:02 PM
http://httpd.apache.org/docs/howto/ssi.html
Read that. :)
And to have them work, they have to be in a .shtml file, instead of .html.
-Scott
how do i put the tag ?
is it like this for example <!--#include virtual="/footer.html" -->
how do i put it in the HTML edit?
You put the <!--#include virtual="/footer.html" --> command into your html document at the point where you want your "footer" to be.
For example, for a footer to be loaded at the very bottom of your html document, you would put the "include" command just above your closing tags for the page.
If the footer file that you are calling to load is within the same directory (folder) as the .shtml file that you are calling it into, you can use <!--#include="/footer.html" --> instead of the "virtual" command call. The "virtual" part of SSI is for calling a file from a different directory (folder).
Just my "For What It's Worth"
sdbarker
6-13-02, 11:19 PM
My personal page [ here (http://www.redrubberball.net/del/index.shtml) ] uses SSI's to manage most of the skinnability and the consistency throughout the pages.
-Scott
I use SSI and would just like to include you need not sufix your html with .shtml if the calling document has been CHMOD'd to 755. The called document need not be CHMOD'd.
Just add:
AddType text/x-server-parsed-html .html
to your .htaccess file to make ssi work with .html
of which .htaccess are you speaking and if placed in the primary htdocs will that not apply server side parsing to all .html when SSI application might apply to just a selected few...
vBulletin v3.6.0, Copyright ©2000-2009, Jelsoft Enterprises Ltd.