Skip to content

Commit

Permalink
Fix ending slash "/" (MicrosoftDocs#132)
Browse files Browse the repository at this point in the history
Added two forward slash where they were missing and a space for consistent formatting.
  • Loading branch information
jiasli authored and bariscaglar committed Feb 7, 2018
1 parent cb2910d commit 937fe9d
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<rule name="Redirect to canonical url">
<match url="^(.+)" > <!-- rule back-reference is captured here -->
<match url="^(.+)" /> <!-- rule back-reference is captured here -->
<conditions>
<!-- Check whether the requested domain is in canonical form -->
<add input="{HTTP_HOST}" type="Pattern" pattern="^www\.mysite\.com$" negate="true">
<add input="{HTTP_HOST}" type="Pattern" pattern="^www\.mysite\.com$" negate="true" />
</conditions>
<!-- Redirect to canonical url and convert URL path to lowercase -->
<action type="Redirect" url="http://www.mysite.com/{tolower:{R:1}}" RedirectType="Found"/>
</rule>
<action type="Redirect" url="http://www.mysite.com/{tolower:{R:1}}" RedirectType="Found" />
</rule>

0 comments on commit 937fe9d

Please sign in to comment.