title: How to get the "originally requested" URL when using IIRF URL Rewriting Engine
body: <p>I am using Iconic's <a href="http://cheeso.members.winisp.net/IIRF.aspx" rel="nofollow">IIRF URL Rewriting Engine</a> on IIS and the "fancy" URLs are something like this:</p>
  
  <pre><code>http://some-website.com/some-function/418/some-keyword-rich-filename.html
  </code></pre>
  
  <p>This example URL corresponds to:</p>
  
  <pre><code>http://some-website.com/some-function.asp?SOME-ID=418
  </code></pre>
  
  <p>Now inside the some-function.asp file I need to know the page that was requested by the browser. I went through all IIS variables but wasn't able to find the value <code>/some-function/418/some-keyword-rich-filename.html</code> inside any of them.</p>
  
  <p>As a side note, I need this information to send 301 redirect to browsers. E.g. if the browser requests:</p>
  
  <pre><code>http://some-website.com/some-function/418/index.html
  </code></pre>
  
  <p>I first need to send the browser to:</p>
  
  <pre><code>http://some-website.com/some-function/418/some-keyword-rich-filename.html
  </code></pre>
  
  <p>And this is why I need the original url for comparison.</p>