Knowledgebase: Windows Hosting
IIS web.config How to redirect to
Posted by Premium Reseller on 30 June 2014 08:51 PM

IIS rewrite rules to redirect to

<?xml version="1.0"?>
  For more information on how to configure your ASP.NET application, please visit
        <rule name="Redirect to non-www" stopProcessing="true">
          <match url="(.*)" negate="false"></match>
            <add input="{HTTP_HOST}" pattern="^yourdomain\.com$" negate="true"></add>
          <action type="Redirect" url="{R:1}" redirectType="Permanent"></action>

(2 vote(s))
This article was helpful
This article was not helpful