File: D:/web/groundscrewcentre/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="^secure\.(.*)$" negate="true" />
</conditions>
<action type="Redirect" url="https://www.{HTTP_HOST}/{R:0}" redirectType="Permanent" />
</rule>
<rule name="Redirect /calc to Calculator page" patternSyntax="ExactMatch" stopProcessing="true">
<match url="calc" />
<action type="Redirect" url="products.asp?page=calculator" redirectType="Permanent" />
</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>
<rule name="Redirect old website /contact-us to contact page" patternSyntax="ExactMatch" stopProcessing="true">
<match url="contact-us" />
<action type="Redirect" url="products.asp?page=contact" redirectType="Permanent" />
</rule>
<rule name="Redirect /about-us to about page" patternSyntax="ExactMatch" stopProcessing="true">
<match url="about-us" />
<action type="Redirect" url="products.asp?page=about" redirectType="Permanent" />
</rule>
<rule name="Redirect /applications-benefits to uses page" patternSyntax="ExactMatch" stopProcessing="true">
<match url="uses" />
<action type="Redirect" url="products.asp?page=uses" redirectType="Permanent" />
</rule>
<rule name="Redirect /how-many-screws-do-i-need to calculator page" patternSyntax="ExactMatch" stopProcessing="true">
<match url="how-many-screws-do-i-need" />
<action type="Redirect" url="products.asp?page=calculator" redirectType="Permanent" />
</rule>
<rule name="Redirect /installation-guide-and-calcs to faq page" patternSyntax="ExactMatch" stopProcessing="true">
<match url="installation-guide-and-calcs" />
<action type="Redirect" url="products.asp?page=faq" redirectType="Permanent" />
</rule>
<rule name="Redirect /videos-gallery to customerphotos page" patternSyntax="ExactMatch" stopProcessing="true">
<match url="videos-gallery" />
<action type="Redirect" url="products.asp?page=customerphotos" redirectType="Permanent" />
</rule>
<rule name="Redirect /videos to videos page" patternSyntax="ExactMatch" stopProcessing="true">
<match url="videos" />
<action type="Redirect" url="products.asp?page=videos" redirectType="Permanent" />
</rule>
<rule name="Redirect /delivery-information to deliveryinfo page" patternSyntax="ExactMatch" stopProcessing="true">
<match url="delivery-information" />
<action type="Redirect" url="products.asp?page=deliveryinfo" redirectType="Permanent" />
</rule>
<rule name="Redirect /privacy-policy to privacy page" patternSyntax="ExactMatch" stopProcessing="true">
<match url="privacy-policy" />
<action type="Redirect" url="products.asp?page=privacy" redirectType="Permanent" />
</rule>
<rule name="Redirect /terms-conditions to customerinfo page" patternSyntax="ExactMatch" stopProcessing="true">
<match url="terms-conditions" />
<action type="Redirect" url="products.asp?page=customerinfo" redirectType="Permanent" />
</rule>
<rule name="Redirect /refund-policy to customerinfo page" patternSyntax="ExactMatch" stopProcessing="true">
<match url="refund-policy" />
<action type="Redirect" url="products.asp?page=customerinfo" redirectType="Permanent" />
</rule>
<rule name="Redirect /ground-screws to Ground Screws category page" patternSyntax="ExactMatch" stopProcessing="true">
<match url="ground-screws" />
<action type="Redirect" url="products.asp?cat=Ground+Screws" redirectType="Permanent" />
</rule>
<rule name="Redirect /ground-screw-installation-tool to Ground Screw Install Tools category page" patternSyntax="ExactMatch" stopProcessing="true">
<match url="ground-screw-installation-tool" />
<action type="Redirect" url="products.asp?cat=Ground+Screw+Install+Tools" redirectType="Permanent" />
</rule>
<rule name="Redirect /ground-screw-joist-kits to calculator page" patternSyntax="ExactMatch" stopProcessing="true">
<match url="ground-screw-joist-kits" />
<action type="Redirect" url="products.asp?page=calculator" redirectType="Permanent" />
</rule>
<rule name="Redirect /ground-screw-accessories to Fittings and Accessories category page" patternSyntax="ExactMatch" stopProcessing="true">
<match url="ground-screw-accessories" />
<action type="Redirect" url="products.asp?cat=Fittings+%26+Accessories" redirectType="Permanent" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>