www.webdeveloper.com
Results 1 to 4 of 4

Thread: Server Side Includes

  1. #1
    Join Date
    Aug 2003
    Posts
    74

    Server Side Includes

    Hello,

    I have a wamp server installed. On it, I'm unable to include one html page into another using following command.

    <!--#include virtual="header.html"-->

    so far I have tried
    1. changing the extension to .shtml
    2. writing .htaccess file with the following two lines of code.


    Code:
    AddType text/html .html
    AddHandler server-parsed .html
    The .shtml works on my webhosting server, but nothing works on wamp server I have on my pc. I could have done it using php but the structure of my site uses simple .html extension throughout the site.

    appreciated ...


    .

  2. #2
    Join Date
    May 2004
    Location
    FL
    Posts
    3,453
    Where is the include? Is it in the same directory as the file?

    Also, try adding a space after the ", e.g., <!--#include virtual="header.html" -->

  3. #3
    Join Date
    Feb 2006
    Posts
    198
    i didn't think SSI's were used much anywhere anymore, some legacy sites i guess..but for a simple include it is still an elegant solution i guess

  4. #4
    Join Date
    May 2004
    Location
    FL
    Posts
    3,453
    SSI's are still used, very much so.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles