SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: SSI file names

  1. #1
    SitePoint Enthusiast
    Join Date
    Oct 2006
    Posts
    97
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    SSI file names

    I want to use server side includes on one of my websites for navigation and a footer. However, I don't want to have to use .shtml file names. I've set my server to parse all .html files, but I've read this is not the best thing because it will unnecessarily slow down regular .html files. So is there a way around doing this?

  2. #2
    I meant that to happen silver trophybronze trophy Raffles's Avatar
    Join Date
    Sep 2005
    Location
    Tanzania
    Posts
    4,662
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    You could use PHP. Its SSI function is extremely easy to use:
    PHP Code:
    <some HTML>
    <?php include('header.html'); ?>
    <more HTML>
    <?php include('footer.html'); ?>
    And you can still call the file whatever.html as long as you've set your server to parse .html files.

  3. #3
    SitePoint Member
    Join Date
    Dec 2005
    Location
    The grassy knoll
    Posts
    14
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If you're on Apache and some kind of Unix system this: XbitHack, is very convenient.


Bookmarks

Posting Permissions

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