title: Remove the aspxerrorpath param with CustomErrors use ResponseRewrite
body: <p>I'm using asp.net MVC4 + visual studio 2012. every thing all fine, But only the custom error always has the <strong>aspxerrorpath</strong> param on the URL.</p>
  
  <p>I already config the custom error on <strong>web.config</strong>:</p>
  
  <pre><code>&lt;customErrors mode="On" defaultRedirect="~/Error/Error"&gt;
    &lt;error redirect="~/Error/Error" statusCode="404" /&gt;
    &lt;error redirect="~/Error/Error" statusCode="500" /&gt;
  &lt;/customErrors&gt;
  </code></pre>
  
  <p>I also changed my Error Action to :</p>
  
  <pre><code>public ActionResult Error()
  {
      Response.Status = "404 Not Found";
      Response.StatusCode = 404;
      return View();
  }
  </code></pre>
  
  <p>Will now when there is some 404 happening. I always got aspxerrorpath param on my URL.
  <strong>I tried add <code>redirectMode="ResponseRewrite"</code></strong> to the customError nodes but If add this , the error will display a run time exception.....</p>
  
  <p>So Is there any best way to remove the aspxerrorpath param? Thanks.</p>