www.webdeveloper.com
Results 1 to 3 of 3

Thread: SSI Question

  1. #1
    Join Date
    Dec 2006
    Posts
    107

    SSI Question

    In the process of creating a multilingual website I have placed language-specific pages into subdirectories of directories in the root called English, French etc. On most of my pages I use an SSI include directive to incorporte a menubar at the top of the page

    Before I went multilingual all of my subdirectories were in the root directory with a virtual path pointing to each one of them - I am doing my local testing using Abyss. Under that scenario this

    <!--#include virtual="/includes/logo.html" -->

    worked perfectly. However, now I have multiple includes directores - one inside each language directory. I an set up a virtual path to each language directory but I am not clear how then I access files in a subdirectory of the language directory. Setting up virtual paths in the server to subdirectories ineach langauge would get very tedious, not to mention the amount of work I would have to do keeping nearly identical bits of code functioning.

    I am pretty sure there is a simpler and more elegant solution but I am cannot see it. I would much appreciate any suggestions.

  2. #2
    Join Date
    Mar 2005
    Location
    Sydney, Australia
    Posts
    7,974
    Try removing the leading /
    Stephen

  3. #3
    Join Date
    Dec 2006
    Posts
    107
    Quote Originally Posted by felgall
    Try removing the leading /
    Thanks. In the meantime I had discovered that what was required was

    <!--'include /en/includes/logo.html -->

    for the includes and relative paths to the menu item links specified in the form

    ../menu/file.shtml

    Don't know if this is Abyss specific but SSI seems to be very picky about precisely how you specify file locations. Am I likely to have any trouble trying to replicate my directory structure on a real (shared) server and still use my file location specifiers?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles