Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Test Version Of New Website Design
 
#23
Sofaspud is correct. Also, Bob, the code you are having the server insert has nothing but the section of code needed, no doctype, header information, etc.
When I've used it in the past I've used .htmlf as the extension letting me know that it is an html fragment not a full webpage. The way SSI works, at
least under Apache, I've not used IIS, is that the site administrator tells Apache what extension(s) to look for to know when to scan. Normally, most
sites use .sht and .shtml tell the server to scan the webpage before sending it and to look in the page for the #include "command". If one is found
then it will insert the file listed in the link as if it were typed in from the beginning. If you name the original file something other than the selected
extension(s) the server will not scan the file and nothing will be included. (With Apache you could use the XBitHack, if turned on, to not have to rename all
your pages but you'd have to have chmod access to the files to set the x bit.)

One caveat, make sure that the server is powerful enough to handle the load as the file has to be scanned and manipulated for each connection. As you appear
to be using a hosting site that should not be a problem. With that said, SSI is very powerful. At work we use it to generate the whole main page. Everything
is made up of .htmlf files loaded around the "wrapper" main page. That way we can change the layout without worrying about the information being
lost during a change. The information just "flows" into the new layout so no cutting and pasting from one file to another when making major layout
changes.

Edit -- Fixed typos and made thoughts clearer.
Reply


Messages In This Thread
[No subject] - by Sofaspud - 07-17-2008, 04:15 AM
[No subject] - by Kurisu - 07-17-2008, 07:07 AM
[No subject] - by Bob Schroeck - 07-17-2008, 01:43 PM
[No subject] - by Bob Schroeck - 07-17-2008, 06:45 PM
[No subject] - by Bob Schroeck - 07-17-2008, 07:33 PM
[No subject] - by bmull - 07-18-2008, 02:07 AM
[No subject] - by Bob Schroeck - 07-18-2008, 02:49 AM
[No subject] - by Bob Schroeck - 07-18-2008, 05:21 AM
[No subject] - by robkelk - 07-18-2008, 05:25 AM
[No subject] - by bmull - 07-22-2008, 12:21 AM
[No subject] - by Bob Schroeck - 07-28-2008, 02:36 PM
[No subject] - by robkelk - 07-28-2008, 11:52 PM
[No subject] - by bmull - 07-29-2008, 02:55 PM
[No subject] - by Sofaspud - 07-29-2008, 11:28 PM
[No subject] - by Bob Schroeck - 07-30-2008, 01:11 AM
[No subject] - by robkelk - 07-30-2008, 05:32 PM
[No subject] - by Bob Schroeck - 07-30-2008, 06:44 PM
[No subject] - by Bob Schroeck - 07-31-2008, 06:41 PM
[No subject] - by Sofaspud - 07-31-2008, 11:02 PM
[No subject] - by Bob Schroeck - 08-01-2008, 02:05 AM
[No subject] - by Sofaspud - 08-01-2008, 08:30 AM
[No subject] - by bmull - 08-01-2008, 01:50 PM
[No subject] - by Bob Schroeck - 08-01-2008, 01:55 PM
[No subject] - by Bob Schroeck - 08-01-2008, 06:46 PM
[No subject] - by Bob Schroeck - 08-11-2008, 06:54 PM
Missing 404 - by kevncody - 08-11-2008, 11:08 PM
[No subject] - by Bob Schroeck - 08-12-2008, 03:53 AM
[No subject] - by bmull - 08-12-2008, 06:15 AM
[No subject] - by Sofaspud - 08-12-2008, 09:20 AM
[No subject] - by Bob Schroeck - 08-12-2008, 01:04 PM
[No subject] - by robkelk - 08-12-2008, 01:39 PM
[No subject] - by Bob Schroeck - 08-12-2008, 06:44 PM
[No subject] - by bmull - 08-12-2008, 11:15 PM
[No subject] - by Bob Schroeck - 08-13-2008, 12:06 AM
[No subject] - by bmull - 08-13-2008, 05:46 AM
[No subject] - by Bob Schroeck - 08-13-2008, 01:40 PM

Forum Jump:


Users browsing this thread: 4 Guest(s)