Created
January 28, 2013 15:06
-
-
Save luisrudge/4656194 to your computer and use it in GitHub Desktop.
removes /directory from a url
eg: www.mysite.com/directory/mypage.html => www.mysite.com/mypage.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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