Skip to content

Instantly share code, notes, and snippets.

@PaulStovell
Created March 13, 2011 23:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PaulStovell/868569 to your computer and use it in GitHub Desktop.
Save PaulStovell/868569 to your computer and use it in GitHub Desktop.
Redirect
<system.webServer>
<rewrite>
<rules>
<rule name="Redirect to WWW" stopProcessing="true">
<match url=".*" />
<conditions>
<add input="{HTTP_HOST}" pattern="^paulstovell.com$" />
</conditions>
<action type="Redirect" url="http://www.paulstovell.com/{R:0}" redirectType="Permanent" />
</rule>
</rules>
</rewrite>
</system.webServer>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment