URL Rewrite examples
Orbit Folder
Copy
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="Orbit - redirect non-language deep links to default language" stopProcessing="true">
<match url="^(?!(index.html|en-AU|en-US|en|de|nl))(.+)" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Redirect" url="./en/{R:2}" redirectType="Temporary" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
Parent Folder
Copy
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<staticContent>
<mimeMap fileExtension=".key" mimeType="text/plain"/>
<mimeMap fileExtension=".lic" mimeType="text/plain"/>
<mimeMap fileExtension=".shp" mimeType="application/octet-stream"/>
<mimeMap fileExtension=".dbf" mimeType="application/octet-stream"/>
</staticContent>
<defaultDocument>
<files>
<clear/>
<add value="home.html"/>
<add value="iisstart.htm"/>
<add value="Default.htm"/>
<add value="Default.asp"/>
<add value="index.htm"/>
<add value="index.html"/>
<add value="default.aspx"/>
</files>
</defaultDocument>
<rewrite>
<rules>
<rule name="Orbit - compensate for no courtesy redirect" patternSyntax="ExactMatch" stopProcessing="true">
<match url="orbit"/>
<action type="Redirect" url="/Orbit/index.html" redirectType="Temporary"/>
</rule>
<rule name="Orbit - compensate for no courtesy redirect with slash" enabled="true" patternSyntax="ExactMatch" stopProcessing="true">
<match url="orbit/" />
<action type="Redirect" url="./Orbit/index.html" redirectType="Temporary" />
</rule>
<rule name="Orbit - handle lowercase versions of URLs" stopProcessing="true">
<match url="orbit/(.*)" ignoreCase="false"/>
<action type="Redirect" url="/Orbit/{R:1}" redirectType="Temporary"/>
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>