forked from telerik/document-processing-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathweb.config
132 lines (119 loc) · 5.32 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<appSettings>
<clear />
</appSettings>
<system.web>
<httpRuntime maxRequestLength="102400" maxUrlLength="102400" maxQueryStringLength="10000" requestValidationType="System.Web.Util.RequestValidator" />
<httpModules>
<clear />
</httpModules>
<httpHandlers>
<clear />
</httpHandlers>
</system.web>
<system.webServer>
<validation validateIntegratedModeConfiguration="false" />
<rewrite>
<rules>
<clear />
<rule name="Redirect to https" stopProcessing="true">
<match url=".*" />
<conditions>
<add input="{HTTPS}" pattern="off" ignoreCase="true" />
</conditions>
<action type="Redirect" url="https://{HTTP_HOST}{REQUEST_URI}" redirectType="Permanent" appendQueryString="false" />
</rule>
<rule name="new-api-reference-redirect" enabled="true">
<match url="api/html/(.*)" ignoreCase="true" />
<action type="Redirect" url="api" redirectType="Permanent" />
</rule>
<rule name="index" enabled="true" stopProcessing="true">
<match url="^/?$" />
<action type="Redirect" url="introduction" redirectType="Found" />
</rule>
{% for directory in site.redirect_directories %}
<rule name="redirect-{{ directory.path | replace: '/', '-' }}" enabled="true">
<match url="^{{ directory.path }}/?$" />
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}.html" matchType="IsFile" negate="true" />
</conditions>
<action type="Redirect" url="{{ directory.url }}" redirectType="Permanent" />
</rule>
{% endfor %}
{% for page in site.redirect_pages %} {% for redirect in page.previous_url %}
<rule name="redirect-{{ redirect | remove_first: '/' | replace: '/', '-' }}" enabled="true" stopProcessing="true">
<match url="^{{ redirect | remove_first: '/' }}$" />
<action type="Redirect" url="{{ page.url | remove_first: '/' | replace: '.html', '' }}" />
</rule>
{% endfor %}{% endfor %}
<rule name="add_html_extension" enabled="true" stopProcessing="true">
<match url="(.*)" />
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}.html" matchType="IsFile" />
</conditions>
<action type="Rewrite" url="{R:1}.html" />
</rule>
<rule name="copyright" enabled="true" stopProcessing="true">
<match url="^licensing/copyright"/>
<action type="Redirect" url="copyright"/>
</rule>
<rule name="license-agreement" enabled="true" stopProcessing="true">
<match url="^licensing/license-agreement"/>
<action type="Redirect" url="distribution-and-licensing/license-agreement"/>
</rule>
<rule name="personal-data-collection" enabled="true" stopProcessing="true">
<match url="personal-data-collection"/>
<action type="Redirect" url="distribution-and-licensing/personal-data-collection"/>
</rule>
<rule name="redistributing-telerik-document-processing" enabled="true" stopProcessing="true">
<match url="installation-and-deployment/redistributing-telerik-document-processing"/>
<action type="Redirect" url="distribution-and-licensing/redistributing-telerik-document-processing"/>
</rule>
<rule name="trial-license-limitations" enabled="true" stopProcessing="true">
<match url="licensing/trial-license-limitations"/>
<action type="Redirect" url="distribution-and-licensing/trial-license-limitations"/>
</rule>
<rule name="getting-started" enabled="true" stopProcessing="true">
<match url="getting-started"/>
<action type="Redirect" url="getting-started/getting-started"/>
</rule>
<rule name="installing-on-your-computer" enabled="true" stopProcessing="true">
<match url="installation/installing-on-your-computer"/>
<action type="Redirect" url="getting-started/installing-on-your-computer"/>
</rule>
<rule name="pdf-export" enabled="true" stopProcessing="true">
<match url="pdf-export"/>
<action type="Redirect" url="getting-started/pdf-export"/>
</rule>
<rule name="system-requirements" enabled="true" stopProcessing="true">
<match url="installation-and-deployment/system-requirements"/>
<action type="Redirect" url="getting-started/system-requirements"/>
</rule>
<rule name="integration-with-visual-studio" enabled="true" stopProcessing="true">
<match url="installation-and-deployment/integration-with-visual-studio"/>
<action type="Redirect" url="integration/integration-with-visual-studio"/>
</rule>
<rule name="upgrade-instructions" enabled="true" stopProcessing="true">
<match url="installation-and-deployment/upgrade-instructions"/>
<action type="Redirect" url="upgrade/upgrade-instructions"/>
</rule>
<rule name="for-more-help" enabled="true" stopProcessing="true">
<match url="for-more-help"/>
<action type="Redirect" url="introduction"/>
</rule>
</rules>
</rewrite>
<httpProtocol>
<customHeaders>
<add name="Cache-Control" value="no-cache" />
</customHeaders>
</httpProtocol>
<staticContent>
<remove fileExtension=".json" />
<mimeMap fileExtension=".json" mimeType="application/json" />
<remove fileExtension=".woff" />
<mimeMap fileExtension=".woff" mimeType="application/x-font-woff" />
</staticContent>
</system.webServer>
</configuration>