|
Actually, all AddType does is allow you to control the content type that the server will use for static files, so .shtml, .htmls, .html, won't do a thing for server side includes. What you need to do (for Classic at least) is add the following directive: Imbdes On Html This will turn on server side include processing for all type html files (not .html extensions, anything with an html content type which is a common misunderstanding). Because you'll most likely have SSI in every page, I don't bother with the different .shtml extension. I just put them in their own directory to seperate them (like /ssihtml or something). If you need this for pbA server, check out my FAQ at www.bvstools.com/faq.html. I have examples of Classic and pbA server configs. Brad www.bvstools.com On Fri, 30 Jan 2004 22:09:00 -0600 "Bob Cozzi" <cozzi@xxxxxxxxx> wrote: > Does the page file name have the .shtml suffix instead of > .html? > If not, you need to change it. If you can't change it, > then add SSI > preprocess to all files by adding the AddType .HTML > > -----Original Message----- > From: web400-bounces@xxxxxxxxxxxx > [mailto:web400-bounces@xxxxxxxxxxxx] On > Behalf Of Pete Helgren > Sent: Friday, January 30, 2004 2:01 PM > To: web400@xxxxxxxxxxxx > Subject: [WEB400] Server Side includes in V4R5M0 Original > Server > > I have a customer where we just updated with HTML pages > that have server > side includes. The included files aren't processed as > part of the page. A > little research indicated that I needed to add an > "AddType" using the > following syntax: > > AddType .shtml text/x-ssi-html 8bit 1.0 > > I stopped and restarted the server but the page still > doesn't display the > included files. > > Here is the HTML: > > <!--#include file="header.html" --> > > <TABLE WIDTH=750 BORDER=0 align="center" CELLPADDING=0 > CELLSPACING=0> > <TR> > <TD width="750" valign="bottom"><img > src="images/mainBody.jpg" > width="750" height="316"></TD> > </TR> > </TABLE> > <!--#include file="footer.html" --> > > Header and footer nevers displays. > > What did I miss. > > Thanks, > > Pete Helgren > > _______________________________________________ > This is the Web Enabling the AS400 / iSeries (WEB400) > mailing list > To post a message email: WEB400@xxxxxxxxxxxx > To subscribe, unsubscribe, or change list options, > visit: http://lists.midrange.com/mailman/listinfo/web400 > or email: WEB400-request@xxxxxxxxxxxx > Before posting, please take a moment to review the > archives > at http://archive.midrange.com/web400. > > > > _______________________________________________ > This is the Web Enabling the AS400 / iSeries (WEB400) > mailing list > To post a message email: WEB400@xxxxxxxxxxxx > To subscribe, unsubscribe, or change list options, > visit: http://lists.midrange.com/mailman/listinfo/web400 > or email: WEB400-request@xxxxxxxxxxxx > Before posting, please take a moment to review the > archives > at http://archive.midrange.com/web400. > Bradley V. Stone BVS.Tools www.bvstools.com
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.