SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Zealot
    Join Date
    Jan 2000
    Location
    CT
    Posts
    160
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Need help w/ SSI

    Hi everyone,

    I am using SSI for the frist time.... I am trying to pull up a page within another page... I have been succesfull doing so using one host... however, I am trying it with another (who claims they support SSI) and I am not having any luck.

    If you take a look at www.mtoassoc.com/Rotary/index5.html and the source, you will see that I am trying to call up another page, /middle.shtml ... now I think the code is right and the pages are all up and running, so therefor, shouldnt it be working? Can someone please give me suggestions of why it is not working and what the .htaccess file for SSI is supposed to include.

    Thanks in advance!

  2. #2
    Mlle. Ledoyen silver trophy seanf's Avatar
    Join Date
    Jan 2001
    Location
    UK
    Posts
    7,168
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The problem is simple. The page index5.html needs to be index5.shtml

    The page you actually put the SSI code on has to have a .shtml extension on most servers.

    If you are using Apache read what I posted here:

    http://www.sitepointforums.com/showt...threadid=29117

    Sean
    Harry Potter

    -- You lived inside my world so softly
    -- Protected only by the kindness of your nature

  3. #3
    SitePoint Zealot
    Join Date
    Jan 2000
    Location
    CT
    Posts
    160
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    if it is titled index.shtml will the browser automaticaly detect it just like it would with a .html extension?

  4. #4
    SitePoint Enthusiast MrK2's Avatar
    Join Date
    Jul 2001
    Location
    British Columbia
    Posts
    39
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    shtml

    Yes, it should recognize the .shtml extension.

    You might notice however, that if you create a .shtml file on your own computer, that you can't double-click on it like a normal HTML file. You'd need to use the Open With dialog to set your browser to open the file (of course, you won't see any includes, because you'll still need a server to execute the SSI commands).

  5. #5
    Mlle. Ledoyen silver trophy seanf's Avatar
    Join Date
    Jan 2001
    Location
    UK
    Posts
    7,168
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by stevek
    if it is titled index.shtml will the browser automaticaly detect it just like it would with a .html extension?
    It makes no difference to the browser, just the webserver

    Sean
    Harry Potter

    -- You lived inside my world so softly
    -- Protected only by the kindness of your nature


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
  •