File: D:/web/circ.itp/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="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 non-www to www" stopProcessing="true">
<match url=".*" />
<conditions>
<add input="{HTTP_HOST}" pattern="^www\.(.*)$" negate="true" />
<add input="{HTTP_HOST}" pattern="^dev\.(.*)$" negate="true" />
<add input="{HTTP_HOST}" pattern="^dev-(.*)\.(.*)$" negate="true" />
<add input="{HTTP_HOST}" pattern="^secure\.(.*)$" negate="true" />
<add input="{HTTP_HOST}" pattern="^itp\.(.*)$" negate="true" />
</conditions>
<action type="Redirect" url="https://www.{HTTP_HOST}/{R:0}" redirectType="Permanent" />
</rule>
<rule name="Redirect /di to Delivery Info page" patternSyntax="ExactMatch" stopProcessing="true">
<match url="di" />
<action type="Redirect" url="products.asp?page=deliveryinfo" redirectType="Permanent" />
</rule>
<rule name="Redirect /hr to Handling Cast Iron Radiators page" patternSyntax="ExactMatch" stopProcessing="true">
<match url="hr" />
<action type="Redirect" url="products.asp?page=handlingcastironradiators" redirectType="Permanent" />
</rule>
<rule name="Redirect /fg to Fitting Guidelines page" patternSyntax="ExactMatch" stopProcessing="true">
<match url="fg" />
<action type="Redirect" url="products.asp?page=fittingguidelines" redirectType="Permanent" />
</rule>
<rule name="Redirect /pc to Calculating Pipe Centres page" patternSyntax="ExactMatch" stopProcessing="true">
<match url="pc" />
<action type="Redirect" url="products.asp?page=calculatingpipecentres" redirectType="Permanent" />
</rule>
<rule name="Redirect /competition to competition page" patternSyntax="ExactMatch" stopProcessing="true">
<match url="competition" />
<action type="Redirect" url="products.asp?page=competition" redirectType="Temporary" />
</rule>
<rule name="Redirect /myradrocks to competition page" patternSyntax="ExactMatch" stopProcessing="true">
<match url="myradrocks" />
<action type="Redirect" url="products.asp?page=competition" redirectType="Temporary" />
</rule>
<rule name="Redirect blog/understanding-cast-iron-radiator-sizes to blog page (Temporary)" patternSyntax="ExactMatch" stopProcessing="true">
<match url="blog/understanding-cast-iron-radiator-sizes" />
<action type="Redirect" url="products.asp?page=blog&name=understanding-cast-iron-radiator-sizes" redirectType="Temporary" />
</rule>
<rule name="Redirect blog/manual-or-thermostatic-valves to blog page (Temporary)" patternSyntax="ExactMatch" stopProcessing="true">
<match url="blog/manual-or-thermostatic-valves" />
<action type="Redirect" url="products.asp?page=blog&name=manual-or-thermostatic-valves" redirectType="Temporary" />
</rule>
<rule name="Redirect blog/myradrocks-winner-2023 to blog page (Temporary)" patternSyntax="ExactMatch" stopProcessing="true">
<match url="blog/myradrocks-winner-2023" />
<action type="Redirect" url="products.asp?page=blog&name=myradrocks-winner-2023" redirectType="Temporary" />
</rule>
<rule name="Redirect blog/winter-heating-maintenance-tips-for-cast-iron-radiators to blog page (Temporary)" patternSyntax="ExactMatch" stopProcessing="true">
<match url="blog/winter-heating-maintenance-tips-for-cast-iron-radiators" />
<action type="Redirect" url="products.asp?page=blog&name=winter-heating-maintenance-tips-for-cast-iron-radiators" 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>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="60000000" />
</requestFiltering>
</security>
</system.webServer>
</configuration>