Created
February 10, 2014 16:00
-
-
Save jdavisclark/8918442 to your computer and use it in GitHub Desktop.
iis rewrite rule: rewrite portions of the authority/domain-name to the path
This file contains hidden or 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
| <rewrite> | |
| <rules> | |
| <rule name="thing" stopProcessing="true"> | |
| <match url="(.*)" /> | |
| <conditions> | |
| <add input="{HTTP_HOST}" pattern="(.*?)\.(.*?)\..*" /> | |
| </conditions> | |
| <action type="Redirect" url="https://www.google.com?sub={C:1}&asdf={C:2}&path={R:0}" /> | |
| </rule> | |
| </rules> | |
| </rewrite> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment