File: D:/web/vintagedoorknobs/web.config
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<defaultDocument>
<files>
<add value="products.asp" />
</files>
</defaultDocument>
<httpErrors errorMode="DetailedLocalOnly">
<remove statusCode="404" subStatusCode="-1" />
<error statusCode="404" prefixLanguageFilePath="" path="/products.asp?page=404" responseMode="ExecuteURL" />
</httpErrors>
<rewrite>
<rules>
<rule name="Redirect non-www to www" stopProcessing="true">
<match url=".*" />
<conditions>
<add input="{HTTP_HOST}" pattern="^www\.(.*)$" negate="true" />
<add input="{HTTP_HOST}" pattern="^secure\.(.*)$" negate="true" />
</conditions>
<action type="Redirect" url="https://www.{HTTP_HOST}/{R:0}" redirectType="Permanent" />
</rule>
<rule name="HTTP to HTTPS redirect" stopProcessing="true">
<match url="(.*)" />
<conditions>
<add input="{HTTPS}" pattern="off" ignoreCase="true" />
</conditions>
<action type="Redirect" url="https://{HTTP_HOST}/{R:1}" redirectType="Permanent" />
</rule>
<rule name="Redirect blog/period-hallway-design to blog page (Temporary)" patternSyntax="ExactMatch" stopProcessing="true">
<match url="blog/period-hallway-design" />
<action type="Redirect" url="products.asp?page=blog&name=period-hallway-design" redirectType="Temporary" />
</rule>
<rule name="Redirect blog/designing-with-vintage-door-knobs to blog page (Temporary)" patternSyntax="ExactMatch" stopProcessing="true">
<match url="blog/designing-with-vintage-door-knobs" />
<action type="Redirect" url="products.asp?page=blog&name=designing-with-vintage-door-knobs" redirectType="Temporary" />
</rule>
<rule name="Redirect blog/caring-for-and-maintaining-antique-door-hardware to blog page (Temporary)" patternSyntax="ExactMatch" stopProcessing="true">
<match url="blog/caring-for-and-maintaining-antique-door-hardware" />
<action type="Redirect" url="products.asp?page=blog&name=caring-for-and-maintaining-antique-door-hardware" redirectType="Temporary" />
</rule>
<rule name="Rewrite sitemap.xml to google-sitemap.asp" patternSyntax="ExactMatch" stopProcessing="true">
<match url="sitemap.xml" />
<action type="Rewrite" url="google-sitemap.asp" appendQueryString="false" />
</rule>
<rule name="Rewrite sitemap.htm to products.asp?page=sitemap" patternSyntax="ExactMatch" stopProcessing="true">
<match url="sitemap.htm" />
<action type="Rewrite" url="products.asp?page=sitemap" appendQueryString="false" />
</rule>
<rule name="Rewrite sitemap.htm to products.asp?page=regional-sitemap" patternSyntax="ExactMatch" stopProcessing="true">
<match url="regional-sitemap.htm" />
<action type="Rewrite" url="products.asp?page=regional-sitemap" appendQueryString="false" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>