Last active
August 29, 2015 14:17
-
-
Save tcmorris/832845741d6abe6e09d0 to your computer and use it in GitHub Desktop.
Using a custom domain for accessing umbraco
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
<!-- Restrict access to Umbraco --> | |
<rule name="Restrict access" stopProcessing="true"> | |
<match url="umbraco(?!/Surface/)" /> | |
<conditions logicalGrouping="MatchAny" trackAllCaptures="false"> | |
<add input="{HTTP_HOST}" matchType="Pattern" pattern="admin.example.com" | |
ignoreCase="true" negate="true" /> | |
</conditions> | |
<action type="Redirect" url="/not-found" appendQueryString="false" /> | |
</rule> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment