Last active
March 12, 2016 09:24
-
-
Save sakapon/a5a3f9b46ab7488ee2b3 to your computer and use it in GitHub Desktop.
URL Rewrite to use virtual directories
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
<configuration> | |
<system.webServer> | |
<rewrite> | |
<rules> | |
<rule name="subdomains" stopProcessing="true"> | |
<match url="^(.*)$" /> | |
<conditions> | |
<add input="{HTTP_HOST}" pattern="www.saka-pon.net" negate="true" /> | |
<add input="{HTTP_HOST}" pattern="^([^.]+).saka-pon.net$" /> | |
</conditions> | |
<action type="Rewrite" url="{C:1}/{R:1}" /> | |
</rule> | |
</rules> | |
</rewrite> | |
</system.webServer> | |
</configuration> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment