title: Rewriting a Url which can contain 1 or 2 querystrings with URLRewriter.NET?
body: <p>In my project, my /PropertDetail.aspx can get 2 querystrings. </p>
  
  <p><strong>1st</strong> one for the PropertyId <code>/PropertDetail.aspx?PropertyId=5</code></p>
  
  <p><strong>2nd</strong> one for the Language <code>/PropertDetail.aspx?PropertyId=5&amp;Language=2</code></p>
  
  <p><strong>EDIT:</strong> and this page can get one of them or can get both of them, so my rewriter rule needs to handle both of them </p>
  
  <p>So, i have set these rules to web.config</p>
  
  <pre><code>&lt;rewriter&gt;
          &lt;rewrite url="^(/.+(\.gif|\.png|\.jpg|\.ico|\.pdf|\.css|\.js)(\?.+)?)$" to="$1" processing="stop" /&gt;
          &lt;rewrite url="^/(.+)-(.+).aspx$" to="/PropertyDetail.aspx?PropertyId=$2" processing="stop"/&gt;
          &lt;!--http://localhost:1562/Harika-Gayrimenkul-5.aspx--&gt;
          &lt;rewrite url="^/(.+)-(.+)-(.+).aspx$" to="/PropertyDetail.aspx?PropertyId=$2&amp;#038;Language=$3" processing="stop"/&gt;
          &lt;!--http://localhost:1562/Great-Property-5-2.aspx--&gt;
  &lt;/rewriter&gt;
  </code></pre>
  
  <p>It is all OK if there is no Language querystring, but when there is a language querystring it gets the 3rd expression as the <em>PropertyId</em> instead of <em>Language</em></p>
  
  <p>How can i define these two rules for the same page ?</p>
  
  <p>Thanks </p>