title: Strip .html for a url redirect
body: <p>I am doing a redirect from an old site to a new site which uses friendly urls.</p>
  
  <p>the url going in is example.com/news-events/some-news-story.html which redirects to anotherdomain.com/news/some-news-story</p>
  
  <p>now the rule ive built so far does everything except strip the .html from the end so its redirecting to anotherdomain.com/news/some-news-story.html.</p>
  
  <p>This should be simple but im drawing a blank.</p>
  
  <p>heres the rule:</p>
  
  <pre><code>&lt;rules&gt;
      &lt;rule name="Redirect news posts" stopProcessing="true"&gt;
        &lt;match url="^news-events/(.*)$" ignoreCase="false" /&gt;
        &lt;action type="Redirect" redirectType="Permanent" url="http://www.anotherdomain.com/news/{R:1}" /&gt;
      &lt;/rule&gt;
    &lt;/rules&gt;
  </code></pre>
  
  <p>any help/suggestions appreciated.</p>