Sebastiaan Janssen has stated that content deploys might not work on Umbraco Cloud if you redirect /umbraco/*
.
Created
November 1, 2016 21:12
-
-
Save alindgren/152d6c3d929e62597431ed6f56b9af5d to your computer and use it in GitHub Desktop.
Canonical domain redirect for Umbraco Cloud sites
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<configuration> | |
<system.webServer> | |
<rewrite> | |
<rules> | |
<rule name="canonical" stopProcessing="true"> | |
<match url=".*" /> | |
<conditions> | |
<add input="{HTTP_HOST}" pattern="^www\.domain\.com$" negate="true" /> | |
<add input="{REQUEST_URI}" negate="true" pattern="^/umbraco" /> | |
</conditions> | |
<action type="Redirect" url="https://www.domain.com/{R:0}" appendQueryString="true" redirectType="Permanent" /> | |
</rule> | |
</rules> | |
</rewrite> | |
</system.webServer> | |
</configuration> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment