Skip to content

Instantly share code, notes, and snippets.

@morgansimonsen
Last active January 10, 2022 11:53
Show Gist options
  • Save morgansimonsen/8040092 to your computer and use it in GitHub Desktop.
Save morgansimonsen/8040092 to your computer and use it in GitHub Desktop.
OWA URL simplification with URL Rewrite
<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