Forum Moderators: open

Message Too Old, No Replies

Learning SSI

Any advice?

         

Trenton

10:43 am on Jan 21, 2004 (gmt 0)

10+ Year Member



Hi

I want to learn how to do SSIs on my website, apparently it's quite easy to do.

Do any of you know of any good tutorials on the web or have any advice about this?

Marcia

10:58 am on Jan 21, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Here's the official Apache documentation

[httpd.apache.org...]

If all you have to do is start using it on your pages, here are the basics you'll need

[httpd.apache.org...]

For example to include a footer on all pages

<!--#include virtual="/footer.html" -->

If you'll be starting to use it on existing pages with an .htm or .html file extension and don't want to have to change filenames, you'll have to put something in .htaccess so those pages can use ssi because generally it's .shtml

thehittmann

12:10 pm on Jan 21, 2004 (gmt 0)

10+ Year Member



couldnt you actully have any file name extension for SSI, so long as you give the extension name to apache to parse for SSI?

Marcia

12:18 pm on Jan 21, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Yes, that's exactly it, you can use it on other type pages, except for being able to use SSI & PHP both, as far as I understand it. You just have to do a file handler in htaccess to parse the other filename pages for SSI.

moltar

12:19 pm on Jan 21, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Yes you can. Just createa a .htaccess file with the following lines in it.

AddType text/html .EXT
AddHandler server-parsed .EXT