forked from telerik/maui-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
web.config
192 lines (181 loc) · 9.78 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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
<?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" />
<modules runAllManagedModulesForAllRequests="true">
<remove name="ClaimsPrincipalHttpModule" />
<remove name="SitefinityClaimsAuthenticationModule" />
<remove name="Sitefinity" />
<remove name="SessionAuthenticationModule" />
<remove name="ScriptModule" />
<remove name="RadUploadModule" />
<remove name="SitefinityAnalyticsModule" />
</modules>
<handlers>
<remove name="xamlx-64" />
<remove name="xamlx-script" />
<remove name="svc-64" />
<remove name="svc-script" />
<remove name="xamlx" />
<remove name="svc" />
<remove name="ScriptHandlerFactory" />
<remove name="ScriptHandlerFactoryAppServices" />
<remove name="ScriptResource" />
<remove name="WildCard" />
<remove name="WildCard32" />
<remove name="Telerik.Web.UI.DialogHandler" />
<remove name="Telerik.RadUploadProgressHandler" />
<remove name="Telerik.Sitefinity.FilesDownloadHandler" />
<remove name="Telerik.Sitefinity.ExportSubscribersHttpHandler" />
<remove name="Telerik.Sitefinity.LibrariesRadUploadHandler" />
<remove name="Telerik.Sitefinity.Html5UploadHandler" />
<remove name="Telerik.Sitefinity.ThumbnailUploadHandler" />
<remove name="Telerik.Sitefinity.AsyncImageUploadHandler" />
<remove name="Telerik.Sitefinity.AsyncFileUploadHandler" />
<remove name="Telerik.Sitefinity.AsyncToolsetXmlUploadHandler" />
<remove name="Telerik.Web.UI.SpellCheckHandler" />
<remove name="Telerik_Web_UI_WebResource_axd" />
<remove name="Telerik_Web_UI_DialogHandler_aspx" />
<remove name="Telerik.ReportViewer.axd_*" />
</handlers>
<rewrite>
<rules>
<clear />
<rule name="index" enabled="true" stopProcessing="true">
<match url="^/?$" />
<action type="Redirect" url="introduction" redirectType="Permanent" />
</rule>
<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" enabled="true" stopProcessing="true">
<match url="apireference/(.*)" ignoreCase="true" />
<action type="Redirect" url="api" redirectType="Permanent" />
</rule>
<rule name="Convert to lower case" enabled="true">
<match url="^([^?]*[A-Z][^?]*)(\?.*)?" ignoreCase="false" />
<conditions>
<add input="{REQUEST_FILENAME}" pattern="\.png|\.css|\.jpg|\.gif" negate="true" />
</conditions>
<action type="Redirect" url="{ToLower:{R:1}}{R:2}" redirectType="Permanent" />
</rule>
<rule name="Hide .html ext" enabled="true">
<match ignoreCase="true" url="^(.*)"/>
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true"/>
<add input="{REQUEST_FILENAME}" pattern="\.png|\.css|\.jpg|\.gif" negate="true" />
<add input="{REQUEST_FILENAME}.html" matchType="IsFile"/>
</conditions>
<action type="Rewrite" url="{ToLower:{R:0}.html}"/>
</rule>
<rule name="Redirecting .html ext" enabled="true">
<match url="^(.*)[.]html$"/>
<conditions logicalGrouping="MatchAny">
<add input="{URL}" pattern="(.*)[.]html$"/>
</conditions>
<action type="Redirect" url="{ToLower:{R:1}}"/>
</rule>
<rule name="redirect-troubleshooting-provisioning-profile" enabled="true" stopProcessing="true">
<match url="troubleshooting/ios-maui-provisioning-profile-not-found" />
<action type="Redirect" url="introduction" redirectType="Permanent" />
</rule>
<rule name="redirect-troubleshooting-check-tool" enabled="true" stopProcessing="true">
<match url="troubleshooting/nuget-error-maui-check-tool" />
<action type="Redirect" url="introduction" redirectType="Permanent" />
</rule>
<rule name="redirect-busy-custom-content" enabled="true" stopProcessing="true">
<match url="^controls/busyindicator/custom-busy-content" />
<action type="Redirect" url="controls/busyindicator/content" />
</rule>
<rule name="redirect-maskedentry-masked-types" enabled="true" stopProcessing="true">
<match url="^controls/maskedentry/maskedentry-masked-types" />
<action type="Redirect" url="controls/maskedentry/mask-types/overview" />
</rule>
<rule name="redirect-copyright" enabled="true" stopProcessing="true">
<match url="^/copyright" />
<action type="Redirect" url="https://www.progress.com/legal/documentation-copyright" />
</rule>
<rule name="redirect-gdpr" enabled="true" stopProcessing="true">
<match url="^/personal-data-collection" />
<action type="Redirect" url="https://www.progress.com/legal/privacy-policy" />
</rule>
<rule name="redirect-getting-started" enabled="true" stopProcessing="true">
<match url="^/maui-getting-started" />
<action type="Redirect" url="/get-started/first-steps" />
</rule>
<rule name="redirect-listview-grouping-grouping" enabled="true" stopProcessing="true">
<match url="^controls/listview/grouping/grouping" />
<action type="Redirect" url="controls/listview/grouping/overview" />
</rule>
<rule name="redirect-pdfprocessing-overview" enabled="true" stopProcessing="true">
<match url="^controls/pdfprocessing/overview" />
<action type="Redirect" url="https://docs.telerik.com/devtools/document-processing/libraries/radpdfprocessing/overview" />
</rule>
<rule name="redirect-spreadprocessing-overview" enabled="true" stopProcessing="true">
<match url="^controls/spreadprocessing/overview" />
<action type="Redirect" url="https://docs.telerik.com/devtools/document-processing/libraries/radspreadprocessing/overview" />
</rule>
<rule name="redirect-spreadstreamprocessing-overview" enabled="true" stopProcessing="true">
<match url="^controls/spreadstreamprocessing/overview" />
<action type="Redirect" url="https://docs.telerik.com/devtools/document-processing/libraries/radspreadstreamprocessing/overview" />
</rule>
<rule name="redirect-wordsprocessing-overview" enabled="true" stopProcessing="true">
<match url="^controls/wordsprocessing/overview" />
<action type="Redirect" url="https://docs.telerik.com/devtools/document-processing/libraries/radwordsprocessing/overview" />
</rule>
<rule name="redirect-ziplibrary-overview" enabled="true" stopProcessing="true">
<match url="^controls/ziplibrary/overview" />
<action type="Redirect" url="https://docs.telerik.com/devtools/document-processing/libraries/radziplibrary/overview" />
</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="Found" />
</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>
</rules>
</rewrite>
<staticContent>
<remove fileExtension=".json" />
<mimeMap fileExtension=".json" mimeType="application/json" />
<remove fileExtension=".woff" />
<mimeMap fileExtension=".woff" mimeType="application/x-font-woff" />
</staticContent>
<httpErrors errorMode="Custom" defaultResponseMode="File" >
<remove statusCode="404" />
<error statusCode="404" path="40x.html" />
</httpErrors>
</system.webServer>
</configuration>