any .htacess experts here ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • elron
    Confirmed User
    • Jul 2003
    • 1553

    #1

    any .htacess experts here ?

    anyone got an idea what could prevent from simple include in html file from not working ?

    <!--#include virtual='/c/xxx.html'-->

    on old server it showed the content of xxx.html on the page , now it's just showing this line .

    The htaccess file stayed the same .

    anyone knows which specification should be written in the .htaccess file for this to work ?
    and i can't rename it to .shtml
  • RayVega
    Confirmed User
    • Jul 2004
    • 4212

    #2
    Originally posted by elron
    anyone got an idea what could prevent from simple include in html file from not working ?

    <!--#include virtual='/c/xxx.html'-->

    on old server it showed the content of xxx.html on the page , now it's just showing this line .

    The htaccess file stayed the same .

    anyone knows which specification should be written in the .htaccess file for this to work ?
    and i can't rename it to .shtml
    Well first off do you have server side includes allowed on the server? Server admin has to allow ssi or there's not much you can do except use an iframe.
    Ray "The Don" Vega

    Managing Director
    Private Equity Fund

    [email protected]

    Comment

    • Nasty
      Confirmed User
      • Aug 2002
      • 1575

      #3
      Put something like this in your htaccess to parse other file types

      AddHandler server-parsed .shtml .shtm .htm .html

      “Ours is a world of nuclear giants and ethical infants. We know more about war than we know about peace, more about killing than we know about living. If we continue to develop our technology without wisdom or prudence, our servant may prove to be our executioner.” ― Omar Bradley (1948)

      Comment

      • RayVega
        Confirmed User
        • Jul 2004
        • 4212

        #4
        You may also need this in your htaccess
        Options +Includes
        This tells Apache that you want to permit files to be parsed for SSI directives.
        Ray "The Don" Vega

        Managing Director
        Private Equity Fund

        [email protected]

        Comment

        • elron
          Confirmed User
          • Jul 2003
          • 1553

          #5
          Originally posted by RayVega
          Well first off do you have server side includes allowed on the server? Server admin has to allow ssi or there's not much you can do except use an iframe.
          on shtml file it will work but i want to allow this to work on html also

          Comment

          • elron
            Confirmed User
            • Jul 2003
            • 1553

            #6
            Originally posted by Nasty
            Put something like this in your htaccess to parse other file types

            AddHandler server-parsed .shtml .shtm .htm .html

            That solved the problem , thanks

            I knew i had to have something like this , i already had :

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



            what's this line for then ?

            Comment

            • RayVega
              Confirmed User
              • Jul 2004
              • 4212

              #7
              Nice! glad you fixed it. Shit like that will drive you nuts!
              Ray "The Don" Vega

              Managing Director
              Private Equity Fund

              [email protected]

              Comment

              Working...