Forum Moderators: phranque

Message Too Old, No Replies

Server Side includes

.shtml

         

malcolmcroucher

11:30 am on Nov 16, 2007 (gmt 0)

10+ Year Member



Do you have name every page .shtml that uses server side includes or is it just the index page?

phranque

1:49 pm on Nov 16, 2007 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



you don't even have to use a .shtml name if you have apache 2.0 or higher.
you can use SetOutputFilter INCLUDES [httpd.apache.org] and all SSI directives in your source will be processed.

otherwise i believe SSI processing is typically based on file name and/or mime type of the (parent) document.

jdMorgan

9:31 pm on Nov 16, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



To parse both htm and html pages for SSI includes, you can use

AddHandler server-parsed .html .htm

in your Apache 1.x .htaccess file.

Jim

phranque

1:31 am on Nov 17, 2007 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



AddHandler is probably the better general solution.

i had SetOutputFilter on my mind because i had to use it recently - i believe it is the only apache solution for using ssi in a cgi script...

malcolmcroucher

12:25 pm on Nov 17, 2007 (gmt 0)

10+ Year Member



Thanks for that , that saves me loads of time