-
-
Save Vrijdagonline/438efdc42be085a139f1b95bdb6da816 to your computer and use it in GitHub Desktop.
Redirect based on browser language
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
<rule name="RedirectToDutchHomepage" enabled="true" stopProcessing="true"> | |
<match url="^$"></match> | |
<conditions> | |
<add input="{HTTP_ACCEPT_LANGUAGE}" pattern="^nl"></add> | |
</conditions> | |
<action type="Redirect" url="https://{HTTP_HOST}/nl/"></action> | |
</rule> | |
<rule name="RedirectToFrenchHomepage" enabled="true" stopProcessing="true"> | |
<match url="^$"></match> | |
<conditions> | |
<add input="{HTTP_ACCEPT_LANGUAGE}" pattern="^fr"></add> | |
</conditions> | |
<action type="Redirect" url="https://{HTTP_HOST}/fr/"></action> | |
</rule> | |
<rule name="RedirectToGermanHomepage" enabled="true" stopProcessing="true"> | |
<match url="^$"></match> | |
<conditions> | |
<add input="{HTTP_ACCEPT_LANGUAGE}" pattern="^de"></add> | |
</conditions> | |
<action type="Redirect" url="https://{HTTP_HOST}/de/"></action> | |
</rule> | |
<rule name="RedirectToEnglishHomepage" enabled="true" stopProcessing="true"> | |
<match url="^$"></match> | |
<action type="Redirect" url="https://{HTTP_HOST}/en/"></action> | |
</rule> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment