301 redirect strategy and URL rewriting

For general questions and discussions specific to the AbleCommerce GOLD ASP.Net shopping cart software.
Post Reply
mike92117
Lieutenant (LT)
Lieutenant (LT)
Posts: 64
Joined: Sat Nov 07, 2009 6:41 pm

301 redirect strategy and URL rewriting

Post by mike92117 » Sun Nov 15, 2015 12:24 pm

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>

Post Reply