Hi Cheb
You already have a "rules" section so you needed to add the new rules to the current set of rules. Also, there was a missing </system.webServer> but try the one below that should be more like it. If you still have problems it's possible you don't have IIS URL Rewrite installed. That is available here...
https://www.iis.net/downloads/microsoft/url-rewrite
Most all hosts now add this by default however.
Vince
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<httpErrors errorMode="Detailed" />
<modules>
<add name="HttpCacheModule" />
<add name="DynamicCompressionModule" />
<add name="StaticCompressionModule" />
</modules>
<rewrite>
<rules>
<rule name="Redirect to WWW" stopProcessing="true">
<match url=".*" />
<conditions>
<add input="{HTTP_HOST}" pattern="^irishplantsdirect.ie$" />
</conditions>
<action type="Redirect" url="http://www.irishplantsdirect.ie/{R:0}" redirectType="Permanent" />
</rule>
<rule name="Categories Match" stopProcessing="true">
<match url="^category/([^/]*)/?$" />
<action type="Rewrite" url="categories.asp?cat={UrlEncode:{R:1}}" />
</rule>
<rule name="Product Match" stopProcessing="true">
<match url="^products/([^/]*)/?$" />
<action type="Rewrite" url="products.asp?cat={UrlEncode:{R:1}}" />
</rule>
<rule name="Manufacturer Match" stopProcessing="true">
<match url="^manufacturer/([^/]*)/?$" />
<action type="Rewrite" url="products.asp?man={UrlEncode:{R:1}}" />
</rule>
<rule name="Product Detail Page Match" stopProcessing="true">
<match url="^([^/]+)/?$" />
<conditions>
<add input="{URL}" pattern="\.asp" negate="true" />
<add input="{URL}" pattern="\.css" negate="true" />
</conditions>
<action type="Rewrite" url="proddetail.asp?prod={UrlEncode:{R:1}}" />
</rule>
</rules>
</rewrite>
</system.webServer>
<location path="specialoffers.asp">
<system.webServer>
<httpRedirect enabled="true" destination="http://www.irishplantsdirect.ie/specialoffers" httpResponseStatus="Permanent" />
</system.webServer>
</location>
</configuration>
Click Here for Shopping Cart SoftwareClick Here to sign up for our newsletterClick Here for the latest updater