Created
October 30, 2014 22:14
-
-
Save mrowell/7d28c7e2b8720d624db0 to your computer and use it in GitHub Desktop.
IIS rewrites for reposado
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
<?xml version="1.0" encoding="UTF-8"?> | |
<configuration> | |
<system.webServer> | |
<directoryBrowse enabled="true" /> | |
<rewrite> | |
<rules> | |
<rule name="Darwin/8" stopProcessing="true"> | |
<match url="^/index(.*)\.sucatalog$" /> | |
<conditions> | |
<add input="{HTTP_USER_AGENT}" pattern="Darwin/8" /> | |
</conditions> | |
<action type="Rewrite" url="/content/catalogs/index{R:1}.sucatalog" /> | |
</rule> | |
<rule name="Darwin/9" stopProcessing="true"> | |
<match url="^/index(.*)\.sucatalog$" /> | |
<conditions> | |
<add input="{HTTP_USER_AGENT}" pattern="Darwin/9" /> | |
</conditions> | |
<action type="Rewrite" url="/content/catalogs/others/index-leopard.merged-1{R:1}.sucatalog" /> | |
</rule> | |
<rule name="Darwin/10" stopProcessing="true"> | |
<conditions> | |
<add input="{HTTP_USER_AGENT}" pattern="Darwin/10" /> | |
</conditions> | |
<match url="^/index(.*)\.sucatalog$" /> | |
<action type="Rewrite" url="/content/catalogs/others/index-leopard-snowleopard.merged-1{R:1}.sucatalog" /> | |
</rule> | |
<rule name="Darwin/11" stopProcessing="true"> | |
<match url="^/index(.*)\.sucatalog$" /> | |
<conditions> | |
<add input="{HTTP_USER_AGENT}" pattern="Darwin/11" /> | |
</conditions> | |
<action type="Rewrite" url="/content/catalogs/others/index-lion-snowleopard-leopard.merged-1{R:1}.sucatalog" logRewrittenUrl="true" /> | |
</rule> | |
<rule name="Darwin/12" stopProcessing="true"> | |
<match url="^/index(.*)\.sucatalog$" /> | |
<conditions> | |
<add input="{HTTP_USER_AGENT}" pattern="Darwin/12" /> | |
</conditions> | |
<action type="Rewrite" url="/content/catalogs/others/index-mountainlion-lion-snowleopard-leopard.merged-1{R:1}.sucatalog" logRewrittenUrl="true" /> | |
</rule> | |
<rule name="Darwin/13" stopProcessing="true"> | |
<match url="^/index(.*)\.sucatalog$" /> | |
<conditions> | |
<add input="{HTTP_USER_AGENT}" pattern="Darwin/13" /> | |
</conditions> | |
<action type="Rewrite" url="/content/catalogs/others/index-10.9-mountainlion-lion-snowleopard-leopard.merged-1{R:1}.sucatalog" /> | |
</rule> | |
<rule name="Darwin/14" stopProcessing="true"> | |
<match url="^/index(.*)\.sucatalog$" /> | |
<conditions> | |
<add input="{HTTP_USER_AGENT}" pattern="Darwin/14" /> | |
</conditions> | |
<action type="Rewrite" url="content/catalogs/others/index-10.10-10.9-mountainlion-lion-snowleopard-leopard.merged-1{R:1}.sucatalog" /> | |
</rule> | |
</rules> | |
</rewrite> | |
<staticContent> | |
<mimeMap fileExtension=".dist" mimeType="text/xml" /> | |
<mimeMap fileExtension=".sucatalog" mimeType="text/xml" /> | |
<mimeMap fileExtension=".pkg" mimeType="application/x-newton-compatible-pkg" /> | |
<mimeMap fileExtension=".pkm" mimeType="application/x-newton-compatible-pkg" /> | |
</staticContent> | |
</system.webServer> | |
</configuration> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment