As a newbie in SSI I cannot find a solution for my problem. Can someone tell what is going wrong here?
On the WN server of my ISP there is a file called index (and index.cache). Both files are needed for webpages to appear in a browser.
My goal is to include a menubar (menu.txt) into each webpage of my homepage.
According to the instructions of the SSI for WN (http://www.helpdesk.vuurwerk.nl/docs/parse.html)I did some handcoding after the 'attributes=serveall' (which is standard needed in the index file).
The menu is now correctly included in the last file (test5.html) but NOT in the other files (test1.html - test4.html)
When checking the source of test1.html-test4.html the marker is there in plain text;
<!--#include virtual="menu.txt" -->
Changing the marker in
<!--#include --> make no difference.
For your information, after each upload/test the index.cache is updated so this cannot be the problem.
The index file is containing:
attributes=serveall
file=test1.html
file=test2.html
file=test3.html
file=test4.html
file=test5.html
includes=menu.txt
E.g., if menu.txt is in your root directory, use
<!--#include virtual="/menu.txt" -->
instead of
<!--#include virtual="menu.txt" -->
It sounds like the files where the menu bar fails to appear are in a subdirectory of the folder where the working file resides. The example you give is referencing a file called menu.txt in the same folder - if this is what is required you would need to use
<!--#include file="menu.txt" -->
Hope this helps!
<?php include("menu.txt"); ?>
This would be if your menu.txt was in the same folder as the file you're including the menu.txt file in.
Sorry if I'm a bit off what you want, but it's a simple solution if you can't get anything else working!
Sticky
All named suggestions are tested but without any result.
An other advice I did recieve was to rename my pages with a .shtml or .asp extension. "This tells the server to process the pages before transmitting them. Because the SSI tag is still in the documents, the server obviously isn't doing that at the moment. (I'm surprised it processes the test5.html page -- without the correct extension, there is nothing that tells it to do that.)"
Also tested this suggestion but still no succes. Is this extension-issue making any sence, or should I forget this item?
For your info: check [caravans.net...] and also test 1.html up to test test4.html Only test5.html is working and the other pages (exactly the same, just renamed them) not.
Please help me out