Last active
January 10, 2022 11:53
-
-
Save morgansimonsen/8040092 to your computer and use it in GitHub Desktop.
OWA URL simplification with URL Rewrite
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
<rewrite> | |
<rewriteMaps> | |
<rewriteMap name="Exchange Server" /> | |
</rewriteMaps> | |
<rules> | |
<clear /> | |
<rule name="Redirect root (Exchange Server)" enabled="true" stopProcessing="true"> | |
<match url="^$" /> | |
<conditions logicalGrouping="MatchAny" trackAllCaptures="false" /> | |
<action type="Redirect" url="/owa" appendQueryString="false" /> | |
</rule> | |
<rule name="Exempt OAB vdir from SSL (Exchange Server)" enabled="true" patternSyntax="Wildcard" stopProcessing="true"> | |
<match url="oab/*" /> | |
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" /> | |
<action type="None" /> | |
</rule> | |
<rule name="Exempt PowerShell vdir from SSL (Exchange Server)" patternSyntax="Wildcard" stopProcessing="true"> | |
<match url="powershell" /> | |
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" /> | |
<action type="None" /> | |
</rule> | |
<rule name="Force HTTPS (Exchange Server)" enabled="true" stopProcessing="true"> | |
<match url="(.*)" /> | |
<conditions logicalGrouping="MatchAll" trackAllCaptures="false"> | |
<add input="{HTTPS}" pattern="Off" /> | |
</conditions> | |
<action type="Redirect" url="https://{HTTP_HOST}/{R:1}" /> | |
</rule> | |
</rules> | |
</rewrite> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment