forked from MicrosoftDocs/iis-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix ending slash "/" (MicrosoftDocs#132)
Added two forward slash where they were missing and a space for consistent formatting.
- Loading branch information
1 parent
cb2910d
commit 937fe9d
Showing
1 changed file
with
4 additions
and
4 deletions.
There are no files selected for viewing
8 changes: 4 additions & 4 deletions
8
...ensions/url-rewrite-module/url-rewrite-module-configuration-reference/samples/sample8.xml
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
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> |