Page 1 of 1

301 redirect strategy and URL rewriting

Posted: Sun Nov 15, 2015 12:24 pm
by mike92117
I'm trying to implement a 301 redirect strategy. It should be simple but I can't for the life of me get it working. I'm wondering if the AbleCommerce rewrite code is somehow interfering with my use of the somewhat native .net rewriting engine. This is on a windows 7 test machine and I installed the IIS URL Rewrite Module 2.0.

I get a 404.0. Note - I am using custom URLs for my products (e.g., Snow-Loads)

Any possible explanations as to why this isn't working or is there a better approach to 301s?

I setup the the following rewritemaps.config file:

Code: Select all

<rewriteMaps>
  <rewriteMap name="Redirects">
    <add key="/pr/sku27506.htm" value="/Snow-Loads" />
  </rewriteMap>
</rewriteMaps>
and have this in my web.config (in system.webServer)

Code: Select all

<rewrite>
          <rewriteMaps configSource="rewritemaps.config" />  
        </rewrite>
  </system.webServer>