SSI Include Help, Prob easy for those who know there SSI

Discussion in 'HTML & Website Design' started by MediaHustler, Jan 26, 2006.

  1. #1
    MediaHustler, Jan 26, 2006 IP
  2. MediaHustler

    MediaHustler Well-Known Member

    Messages:
    1,857
    Likes Received:
    46
    Best Answers:
    0
    Trophy Points:
    120
    #2
    MediaHustler, Jan 26, 2006 IP
  3. lorien1973

    lorien1973 Notable Member

    Messages:
    12,206
    Likes Received:
    601
    Best Answers:
    0
    Trophy Points:
    260
    #3
    You can edit your config files to make SSI work on .html files as well :)
     
    lorien1973, Jan 26, 2006 IP
  4. MediaHustler

    MediaHustler Well-Known Member

    Messages:
    1,857
    Likes Received:
    46
    Best Answers:
    0
    Trophy Points:
    120
    #4
    Hmmm. now i'm getting an [error occured] thing on the sides.
     
    MediaHustler, Jan 26, 2006 IP
  5. MediaHustler

    MediaHustler Well-Known Member

    Messages:
    1,857
    Likes Received:
    46
    Best Answers:
    0
    Trophy Points:
    120
    #5
    REALLY!?

    How please tell.
     
    MediaHustler, Jan 26, 2006 IP
  6. lorien1973

    lorien1973 Notable Member

    Messages:
    12,206
    Likes Received:
    601
    Best Answers:
    0
    Trophy Points:
    260
    #6
    I think you put this in your htaccess:

    AddType text/html .shtml
    AddHandler server-parsed .shtml .html
    Options Indexes FollowSymLinks Includes
    DirectoryIndex index.shtml index.html
     
    lorien1973, Jan 26, 2006 IP
  7. MediaHustler

    MediaHustler Well-Known Member

    Messages:
    1,857
    Likes Received:
    46
    Best Answers:
    0
    Trophy Points:
    120
    #7
    How come in http://www.mediahustler.com/videos/1/snowballed.shtml

    Only one SSI include is working (ad above the video)

    Why aren't the others working?
     
    MediaHustler, Jan 26, 2006 IP
  8. lorien1973

    lorien1973 Notable Member

    Messages:
    12,206
    Likes Received:
    601
    Best Answers:
    0
    Trophy Points:
    260
    #8
    I'd assume an incorrect path. SSI usually spits out that error when it can't find a file, or the include is improperly formed.

    I dont use SSI anymore, I prefer php includes a lot more.
     
    lorien1973, Jan 26, 2006 IP
  9. ing

    ing Well-Known Member

    Messages:
    500
    Likes Received:
    38
    Best Answers:
    0
    Trophy Points:
    195
    #9
    This works for me...

    Add the following line to .htaccess if you want to use a .html extension

    AddType text/x-server-parsed-html .html .htm

    Then wherever you want an include to show, you add
    <!--#include virtual="/filename.txt" -->
    where "filename" is the name of the file, and that file has been uploaded to the same directory as your index page.

    Hope that helps.

    :)
     
    ing, Jan 27, 2006 IP