Server Side Includes problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • koager
    New Member
    • Sep 2009
    • 18

    Server Side Includes problem

    My SSIs don't seem to be working.
    I have all the files uploaded but my header and footer aren't showing up.
    I started working on my website in .html but then renamed the extension to .shtml for SSIs.
    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
    <html>
    <head>
    <link rel="stylesheet" type="text/css" href="css.css" media="screen"/><title>Current Project(s)</title>
    <style type="text/css"></style>
    </head>
    
    <body id="wip">
    
    <div id="container">
    	<!-- #include FILE="header.shtml" -->
    	
      <div id="body">
    This page is still under construction.
      </div>
      <!-- #include FILE="footer.shtml" -->
    </div>
    </body>
    </html>
    I'm not sure, it may be the server that I'm using. I'm not used to it.
    I upload my files under a public_html folder and I thought that was it
    It works if I rename everything to .php but I would really like to know how to solve the problem instead of just going around it.
  • Markus
    Recognized Expert Expert
    • Jun 2007
    • 6092

    #2
    There should be no space between the opening <!-- and #.

    Code:
    <!-- correct -->
    <!--#include FILE="..." -->
    <!-- wrong -->
    <!-- #include FILE="..." -->

    Comment

    • koager
      New Member
      • Sep 2009
      • 18

      #3
      ooooh. never really noticed that.
      Thank you

      Comment

      Working...