Home > Software Development > Redirecting with web.config

Redirecting with web.config

Here is how to conduct an HTTP 301 Permanent Redirect from one web site to another location usingĀ web.config in ASP.NET:

<configuration>
    <system.webServer>
        <httpRedirect enabled="true"
                destination="http://www.digitalhoneycomb.com"
                exactDestination="true"
                httpResponseStatus="Permanent" />
    </system.webServer>
</configuration>

© 2009 – 2012, Kelly Orr. All rights reserved. Contact author for republishing permission.

Categories: Software Development Tags:
  1. No comments yet.

 

Bad Behavior has blocked 82 access attempts in the last 7 days.