Skip to content

Commit

Permalink
Update web.config
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronCrawfis authored Oct 30, 2023
1 parent da286ab commit 8e6b026
Showing 1 changed file with 18 additions and 8 deletions.
26 changes: 18 additions & 8 deletions docs/content/web.config
Original file line number Diff line number Diff line change
@@ -1,13 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.webServer>
<staticContent>
<remove fileExtension=".bicep" />
<mimeMap fileExtension=".bicep" mimeType="text/plain" />
<remove fileExtension=".json" />
<mimeMap fileExtension=".json" mimeType="application/json" />
<remove fileExtension=".yaml" />
<mimeMap fileExtension=".yaml" mimeType="application/yaml" />
</staticContent>
<rewrite>
<rules>
<rule name="Redirect to edge.docs.radapp.io" stopProcessing="true">
<match url=".*" />
<conditions>
<add input="{HTTP_HOST}" pattern="^edge\.docs\.radapp\.dev$" />
</conditions>
<action type="Redirect" url="https://edge.docs.radapp.io/{R:0}" />
</rule>
<rule name="Redirect to docs.radapp.io" stopProcessing="true">
<match url=".*" />
<conditions>
<add input="{HTTP_HOST}" pattern="^docs\.radapp\.dev$" />
</conditions>
<action type="Redirect" url="https://docs.radapp.io/{R:0}" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>

0 comments on commit 8e6b026

Please sign in to comment.