SSI not working?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • superfly
    Member
    • Mar 2004
    • 80

    #1

    SSI not working?

    Hello, I've got a friend hosting, but he says that SSI doesn't work. I haven't really used SSI, so I don't know what could be the problem.

    well the problem is, he has this line in his index.html
    -----------------------------------------------
    <!--#include virtual='cgi-bin/textcount.cgi' -->
    -----------------------------------------------
    not nothing shows, just the "Hello, we'll be online shortly" line.

    Did I screw up when creating his account, is something else wrong, ...?
  • superfly
    Member
    • Mar 2004
    • 80

    #2
    Actually, I just chaned index.html into index.shtml and everything works... was that all?

    Comment

    • Jonathan
      Senior Member
      • Mar 2004
      • 1229

      #3
      Yep, but you can easily use HTACCESS to run SHTML files
      as HTML files, PHP as HTML or SHTML, SHTML as PHP, etc.
      "How can someone be so distracted yet so focused?"
      - C

      Comment

      • Realdude
        Junior Member
        • Jun 2004
        • 2

        #4
        More Please

        Can anyone post what code needs to go into HTACCESS to run SHTML files
        as HTML files?

        Thank you so ...

        Dan

        Comment

        • Jonathan
          Senior Member
          • Mar 2004
          • 1229

          #5
          Originally posted by Realdude
          Can anyone post what code needs to go into HTACCESS to run SHTML files
          as HTML files?

          Thank you so ...

          Dan
          I personally have in the past used:

          AddType application/x-httpd-php .php .htm .html .shtml
          AddType text/x-server-parsed-html .php .htm .html .shtml
          But I think someone here reported a problem with that, I can't recall
          "How can someone be so distracted yet so focused?"
          - C

          Comment

          • Realdude
            Junior Member
            • Jun 2004
            • 2

            #6
            Thanks,I'll give it a try.

            Dan

            Comment

            • djn
              Senior Member
              • Mar 2004
              • 140

              #7
              I recall the Apache team actually preferring AddHandler over AddType for this kind of tricks (even if both of them work).

              Comment

              Working...