URL Redirects

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
Hace 8 años
Hello, We are moving to a new nopcommerce site V3.60 from a classic asp site and need to set up around 2000 URL redirects for SEO purposes. Therefore a page .../about-us.asp needs to redirect to /about
I have added the code to the web.config file;

<rewrite>
<rewriteMaps configSource="myrewritemaps.config" />
  <rules>
  <rule name="Redirect rule1 for Redirects">
    <match url=".*" />
    <conditions>
      <add input="{Redirects:{REQUEST_URI}}" pattern="(.+)" />
    </conditions>
  <action type="Redirect" url="{C:1}" appendQueryString="false" />
  </rule>
</rules>
</rewrite>

And moved the redirects to a separate file myrewritemaps.config

This contains for example;
<rewriteMaps>
  <rewriteMap name="Redirects">
    <add key="/test.aspx" value="/contactus" />
  </rewriteMap>
</rewriteMaps>

This works fine with .aspx file extensions, however it does not work with classic .asp URL extensions.
Does anyone know if this can be done?
Any help is appreciated! Best regards, James
Hace 8 años
Problem solved!! Just needed to turn off asp in the control panel!
Many thanks.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.