I would like to use the URL Rewrite module of IIS7 to create 301 redirects based on a specific pattern.
I have a web site that consists of only .HTML files. I am con
Here you go:
<system.webServer>
<rewrite>
<rules>
<rule name="html2php" stopProcessing="true">
<match url="^(.+)\.html$" />
<action type="Redirect" url="{R:1}.php" redirectType="Permanent" />
</rule>
</rules>
</rewrite>
</system.webServer>
Tested on IIS 7.5 with URL Rewrite module v2.0 -- works fine.