Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: Canonical Redirect using IIS 7.0  (Read 3141 times)

0 Members and 1 Guest are viewing this topic.


  • Guest
Canonical Redirect using IIS 7.0
« on: July 26, 2014, 03:13:23 pm »
We can see some request that Cx want their domain redirect to WWW always. We can configure the same by adding below code to web.config.

Code: [Select]
        <rule name="Redirect to WWW" stopProcessing="true">
          <match url=".*" />
            <add input="{HTTP_HOST}" pattern="^$" />
          <action type="Redirect" url="{R:0}"
              redirectType="Permanent" />

Thank you,