SitePoint Sponsor

User Tag List

Results 1 to 8 of 8
  1. #1
    SitePoint Enthusiast
    Join Date
    Jul 2003
    Location
    New York
    Posts
    26
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Anyone up for a good mystery? (SSI issue)

    Hi,

    One of my websites is www.mikedragonetti.com I'm in the process of trying to put on a navigation bar which uses Server Side Includes. The site's hosted by Earthlink. They've assured me they support it, but when I put it up there, and navigation bar doesn't show. I even had one of their tech support people on the phone trying to fix it over there, but to no avail. Ironically the .shtml page and the .ssi page work by themselves, but when I add them to the index page it's no go.

    Can someone be kind enough to view source it and tell me what I'm doing wrong? The index page at www.mikedragonetti.com.

    I've done the same thing with at least one other site I host at GoDaddy, and the code works fine. The exact same code I'm trying on Earthlink.

    Big thanks in advance!

    Mike

  2. #2
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,702
    Mentioned
    101 Post(s)
    Tagged
    4 Thread(s)
    What is the path to the included nav page? It appears that myNavbar.shtm doesn't seem to exist.
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript

  3. #3
    Robert Wellock silver trophybronze trophy xhtmlcoder's Avatar
    Join Date
    Apr 2002
    Location
    A Maze of Twisty Little Passages
    Posts
    6,316
    Mentioned
    60 Post(s)
    Tagged
    0 Thread(s)
    Like Paul said it appears you haven't got you path correctly defined or there isn't a file of that name, also what is the name of you "index" page does that have the correct .shtml extension?

  4. #4
    SitePoint Enthusiast
    Join Date
    Jul 2003
    Location
    New York
    Posts
    26
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sorry guys, here goes:

    On www.mikedragonetti.com/index.html, I tried:

    <!--#include virtual="MyNavbar.shtm"-->

    And ironically if you just type in www.mikedragonetti.com/MyNavbar.shtml the navigation works by itself

    On www.mikedragonetti.com/index2.html, I tried:

    <!--#include virtual="myNavbar.ssi"-->

    And again if you just type in www.mikedragonetti.com/myNavbar.ssi the navigation works by itself

    Hope this helps explain things. Thanks for looking!

  5. #5
    Non-Member bronze trophy
    Join Date
    Nov 2009
    Location
    Keene, NH
    Posts
    3,760
    Mentioned
    23 Post(s)
    Tagged
    0 Thread(s)
    not only does the include appear to not exist (shtm, should be shtml)
    http://www.mikedragonetti.com/myNavbar.shtm

    You appear to be serving index.html -- so it's the wrong extension to tell apache to use SHTML.
    http://www.mikedragonetti.com/index.html -- resolves
    http://www.mikedragonetti.com/index.shtml -- 404

    see a problem here? The file using the include should be shtml as well.
    Also, did you enable "Options +Includes" in your htaccess and set up the shtml extension using addType/addHandler?

  6. #6
    SitePoint Enthusiast
    Join Date
    Jul 2003
    Location
    New York
    Posts
    26
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for replying! I'm quite new at this (and more than a bit lost here)

    I'd just uploaded the .ssi page, linked index.html to point to it, and uploaded. When that didn't work I created an shtml page, re-coded the index page to point to it and uploaded that. That worked on GoDaddy's severs with another site of mine with no problem, but this one's hosted by Earthlink, and they support SSI.

    Hope this makes sense, and thanks again!

  7. #7
    SitePoint Enthusiast
    Join Date
    Jul 2003
    Location
    New York
    Posts
    26
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for the last suggestion! I saved the main index as a shtml file, uploaded it, and deleted the previous indexes, and now it works!

    Happy Ending!

  8. #8
    Robert Wellock silver trophybronze trophy xhtmlcoder's Avatar
    Join Date
    Apr 2002
    Location
    A Maze of Twisty Little Passages
    Posts
    6,316
    Mentioned
    60 Post(s)
    Tagged
    0 Thread(s)
    No, worries like I said in post #3 "...does that have the correct .shtml extension?" which it does now. It is one of the most common mistakes a beginner makes. ;-)


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
  •