ASP.Net - Configure the redirect rules in IIS Code Example

The code for Configure the redirect rules in IIS

<rewrite>
  <rules>
     <rule name="[RULE NAME]" stopProcessing="true">
     <match url="(.*)" />
     <conditions logicalGrouping="MatchAny" trackAllCaptures="false">
        <add input="{HTTP_HOST}{REQUEST_URI}" pattern="[OLD URL]" />
     </conditions>
     <action type="Redirect" url="http://[NEW URL]/{R:1}" redirectType="Permanent"/>
     </rule>
  </rules>
</rewrite>
Code by IncludeHelp, on August 11, 2022 23:58
Reference: https://docs.nopcommerce.com/

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.