Skip to content

Instantly share code, notes, and snippets.

@seanho
Created December 15, 2009 02:13
Show Gist options
  • Save seanho/256646 to your computer and use it in GitHub Desktop.
Save seanho/256646 to your computer and use it in GitHub Desktop.
<rule name="Rewrite subdomain" stopProcessing="false">
<match url="(.*)" />
<conditions>
<add input="{HTTP_HOST}" pattern="^(?!www)(\w+)\.domain\.net$" />
</conditions>
<action type="Rewrite" url="{C:1}/{R:1}" />
</rule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment