title: Conditional SSI Based on URI
body: <p>I am redoing the navigation bar that is included several dozen of my site's pages. One of the changes that I want to make is to vary the content that is included, based on the page that the user is on. Thus my plan is basically to have the file that is currently included everywhere act as a selector to decide which actual file(s) to include.</p>
  
  <p>From the my reading of the <a href="http://httpd.apache.org/docs/2.2/howto/ssi.html" rel="nofollow noreferrer">Apache SSI Specs</a>, I believe I can do this through conditional expressions driving my SSI. Something like:</p>
  
  <pre><code>&lt;!--#if expr="[URI is page1.shtml]" --&gt;
  &lt;!--#include virtual="page1contents.shtml" --&gt;
  &lt;!--#elif expr="[URI is page2.shtml]" --&gt;
  &lt;!--#include virtual="page2contents.shtml" --&gt;
  &lt;!--#endif --&gt;
  </code></pre>
  
  <p>My question, then, is what should go in the <code>[URI is page1]</code> part of that to actually test the condition I'm interested in?</p>