Skip to content

Instantly share code, notes, and snippets.

@luisrudge
Created January 28, 2013 15:06
Show Gist options
  • Save luisrudge/4656194 to your computer and use it in GitHub Desktop.
Save luisrudge/4656194 to your computer and use it in GitHub Desktop.
<rule name="RemoveDirectory">
<match url="directory/(.*)" />
<action type="Rewrite" url="/{R:1}" />
<conditions>
<add input="{HTTP_HOST}" pattern="^www.mysite.com$" />
</conditions>
</rule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment