OK - help needed
Right, the website is now working again - (it was the .htaccess file causing the problem); I shouldn't need to do anything other than label files .shtml to make the SSI work.
But the SSI doesn't work....
The following is the code in navbar.html:
<div class="ul">
<map name="Navigation Bar">
<ul>
<li>
<span class="accesskey">
<a accesskey="s" href="#foo">Skip Navigation Bar</a></span></li>
<li>
<!--#if expr="pagename = 'home'" -->
<span class="bold">Home</span>
<!--#else -->
<a accesskey="0" href="index.html">Home</a>
<!--#endif -->
</li>
*snip code that matches the above for the other link*
</ul>
</map>
</div>
This is what I inserted into the file snippetsorderform.shtml
(now removed from the server)
<!--#set var="pagename" value="snippetsorderform" -->
<!--#include virtual="/navbar.html" -->
And it didn't work. I've tried playing with the quoting, with makng "pagename" a variable, by using a $ sign, even tried googling where I found http://httpd.apache.org/docs/howto/ssi.html (yes, what
nou had suggested), and it looks like the code is right.....but it *can't* be. It failed to abide by the 'if' command and displayed both bold non link and link for each item in the list.
Anyone able to look at this with a fresh pair of eyes?
But the SSI doesn't work....
The following is the code in navbar.html:
<div class="ul">
<map name="Navigation Bar">
<ul>
<li>
<span class="accesskey">
<a accesskey="s" href="#foo">Skip Navigation Bar</a></span></li>
<li>
<!--#if expr="pagename = 'home'" -->
<span class="bold">Home</span>
<!--#else -->
<a accesskey="0" href="index.html">Home</a>
<!--#endif -->
</li>
*snip code that matches the above for the other link*
</ul>
</map>
</div>
This is what I inserted into the file snippetsorderform.shtml
(now removed from the server)
<!--#set var="pagename" value="snippetsorderform" -->
<!--#include virtual="/navbar.html" -->
And it didn't work. I've tried playing with the quoting, with makng "pagename" a variable, by using a $ sign, even tried googling where I found http://httpd.apache.org/docs/howto/ssi.html (yes, what
![[livejournal.com profile]](https://www.dreamwidth.org/img/external/lj-userinfo.gif)
Anyone able to look at this with a fresh pair of eyes?