ASP.NET: Tips and Tricks

From KB TDE Informatica
Jump to: navigation, search

Redirect in ASP.NET[edit]

<?xml version="1.0" encoding="utf-8"?>
<configuration>

     <system.webServer>

<rewrite>
  <rules>
     <rule name="[RULE NAME]" stopProcessing="true">
     <match url="(.*)" />
     <conditions logicalGrouping="MatchAny" trackAllCaptures="false">
        <add input="{HTTP_HOST}{REQUEST_URI}" pattern="www.bludrivegroup.com" />
        <add input="{HTTP_HOST}{REQUEST_URI}" pattern="bludrivegroup.com" />
     </conditions>
     <action type="Redirect" url="http://www.bludrivegroup.it" redirectType="Permanent"/>
     </rule>
  </rules>
</rewrite>
    </system.webServer>

</configuration>