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.