Skip to content

Instantly share code, notes, and snippets.

@NathalieLarsson
Last active August 29, 2015 14:17
Show Gist options
  • Save NathalieLarsson/6fd5b225054c3c5bce8e to your computer and use it in GitHub Desktop.
Save NathalieLarsson/6fd5b225054c3c5bce8e to your computer and use it in GitHub Desktop.
Umbraco Config Redirect
<rewrite>
<rules>
<rule name="Redirect till www.domain.se" enabled="true" stopProcessing="true">
<match url="(.*)" />
<conditions>
<add input="{HTTP_HOST}" pattern="^www\.domain\.se$" negate="true" />
</conditions>
<action type="Redirect" url="http://www.domain.se/{R:1}" />
</rule>
</rules>
</rewrite>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment