title: Url rewrite with ASP.NET query string
body: <p>I would like to rewrite URL with query string in ASP.NET. The URL looks like as following:</p>
  
  <pre><code>http://localhost:51392/productdetails.aspx?id=zdpMPZVXkDtjw92Crx7eew==
  </code></pre>
  
  <p>I would like to rewrite the url into something like this:</p>
  
  <pre><code>http://localhost:51392/Details/zdpMPZVXkDtjw92Crx7eew==
  </code></pre>
  
  <p>I have tried using the following method to rewrite the url (something like this): </p>
  
  <pre><code> &lt;urlMappings&gt;
        &lt;add url="~/Shop"   mappedUrl="~/shop.aspx"/&gt;
  &lt;/urlMappings&gt;
  </code></pre>
  
  <p>But I'm not really sure how to properly map the URL with query string?? What is the easiest, or other method that can be used to achieve this??</p>
  
  <p>Thanks!</p>
  
  <p>P.S. guys this is how I'm trying to access the rewriten URL:</p>
  
  <pre><code>&lt;a href='&lt;%# "/productdetails.aspx?id=" + RL_DAL.RijndaelHelper.AES.Encrypt(Eval("ProductID").ToString(),"key_to_enrypt")  %&gt;'&gt;&lt;%# Eval("ProductName") %&gt;
  </code></pre>