HTML include problem!

Discussion in 'HTML & Website Design' started by Doskono, Aug 4, 2007.

  1. #1
    Alright This is what my file directory looks like

    • images
    • productions
    • includes
    • mainfile.html

    On my main file .html i include this like:

    <!--#include file="includes/footer.html" -->
    Code (markup):
    Which works fine!

    Now I have another file in the productions folder.
    The way I include the footer in the same location as the other footer is this way:
    <!--#include virtual="/includes/footer.html" -->
    Code (markup):
    This does not work! No error message just not there... Could anyone help me

    Thanks a lot!
     
    Doskono, Aug 4, 2007 IP
  2. eadkung

    eadkung Active Member

    Messages:
    148
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    58
    #2
    try this :)
    <!--#include virtual="../includes/footer.html" -->
    Code (markup):
    you need to call up to root directory ( ' ../ ') and then call includes folder.

    hope that help. :)
     
    eadkung, Aug 4, 2007 IP