title: Removing .aspx from pages using rewriteModule?
body: <p>I'm using ASP .NET rewriteModule to rewrite <a href="http://example.com" rel="noreferrer">http://example.com</a> to <a href="http://www.example.com" rel="noreferrer">http://www.example.com</a>.</p>
  
  <pre><code>&lt;section name="rewriteModule" type="RewriteModule.RewriteModuleSectionHandler, RewriteModule"/&gt;
  </code></pre>
  
  <p>Then i have this inside <code>&lt;system.webServer&gt;</code>.</p>
  
  <pre><code>    &lt;rewrite&gt;
          &lt;rules&gt;
              &lt;rule name="Canonical" stopProcessing="true"&gt;
                  &lt;match url=".*"/&gt;
                  &lt;conditions&gt;
                      &lt;add input="{HTTP_HOST}" pattern="^([a-z]+[.]com)$"/&gt;
                  &lt;/conditions&gt;
                  &lt;action type="Redirect" url="http://www.{C:0}/{R:0}" redirectType="Permanent"/&gt;
              &lt;/rule&gt;
          &lt;/rules&gt;
      &lt;/rewrite&gt;
  </code></pre>
  
  <p>Now i want to remove all the .aspx in the end of my pages. Example:</p>
  
  <p><a href="http://www.example.com/Register.aspx" rel="noreferrer">http://www.example.com/Register.aspx</a></p>
  
  <p>Will turn into:</p>
  
  <p><a href="http://www.example.com/Register/" rel="noreferrer">http://www.example.com/Register/</a></p>
  
  <p>How can i do that?</p>
  
  <p><strong>I'm on Shared Web Hosting on GoDaddy using IIS7.</strong></p>