title: How to get SSI variable REQUEST_URI without query parameters
body: <p>I'm trying to get the pathname part of the REQUEST_URI, without the query parameters.  I need to do this in raw SSI, without any PHP or anything.</p>
  
  <p>If I do something like <code>&lt;!--#echo var="REQUEST_URI" --&gt;</code>, that will output the pathname plus the query parameters, so if the browser URL shows <a href="http://example.com/foo.html?bar" rel="nofollow noreferrer">http://example.com/foo.html?bar</a>, that would return <code>/foo.html?bar</code>.  But I need to return only <code>/foo.html</code>.  Is there a way to do that directly inside an <code>echo</code> statement?</p>
  
  <p>Note: It needs to use the requested uri only.  The actual file paths on the server are very different and I cannot display those.</p>