title: Url rewriting in asp.net core 2.0
body: <p>I want to rewrite the url </p>
  
  <pre><code>http://localhost:56713/Home/UserDetails?Code=223322
  </code></pre>
  
  <p>with </p>
  
  <pre><code>http://localhost:56713/223322
  </code></pre>
  
  <p>I have written below in StartUp.cs but it is not working</p>
  
  <pre><code>var rewrite = new RewriteOptions()
    .AddRewrite(@"{$1}", "Home/UserDetails?Code={$1}",true);
  </code></pre>