forked from IgniteUI/igniteui-angular-samples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathweb.config
30 lines (30 loc) · 1.07 KB
/
web.config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="Angular Routes" stopProcessing="true">
<match url=".*" />
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
</conditions>
<action type="Rewrite" url="/angular-demos/" />
</rule>
<rule name="Angular Root Redirect" enabled="true" stopProcessing="true">
<match url="^/?$" />
<action type="Redirect" url="/products/ignite-ui-angular/getting-started" redirectType="Permanent" />
</rule>
</rules>
</rewrite>
<staticContent>
<remove fileExtension=".json" />
<mimeMap fileExtension=".json" mimeType="application/json;charset=UTF-8;" />
</staticContent>
<httpProtocol>
<customHeaders>
<add name="X-XSS-Protection" value="0" />
</customHeaders>
</httpProtocol>
</system.webServer>
</configuration>