-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathweb.config
More file actions
251 lines (213 loc) · 19.4 KB
/
web.config
File metadata and controls
251 lines (213 loc) · 19.4 KB
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
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.web>
</system.web>
<system.webServer>
<rewrite>
<rules>
<!-- <clear /> -->
<!-- For Example -->
<!-- Important!!! Rule Name can't be repeated. -->
<!-- <rule name="Rewrite Resource Page" stopProcessing="true">
<match url="about/index.html" />
<action type="Rewrite" url="https://www.dynamsoft.com/web-twain/resources/" appendQueryString="true" />
</rule> -->
<rule name="webp" stopProcessing="true">
<match url="(.+)\.(jpe?g|png)$" />
<serverVariables>
</serverVariables>
<action type="Rewrite" url="{R:1}.webp" />
<conditions>
<add input="{HTTP_ACCEPT}" pattern="image/webp" />
<add input="{DOCUMENT_ROOT}/web-twain/docs/{R:1}.webp" matchType="IsFile" />
</conditions>
</rule>
<rule name="Redirect rule30 for redirect dnt/kb pages" enabled="true" patternSyntax="ECMAScript">
<match url="indepth/troubleshooting/common-errors/activating-the-WebTwain-instance.html" ignoreCase="true" negate="false" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Redirect" url="{HTTP_POST}/web-twain/docs/indepth/faqs/troubleshooting/activating-the-WebTwain-instance-prompt-doesnt-disappear.html?ver=latest" appendQueryString="false" logRewrittenUrl="false" />
</rule>
<rule name="Redirect /indepth/faqs/distribution/How-to-set-the-MIME-type.html" enabled="true" patternSyntax="ECMAScript">
<match url="indepth/faqs/distribution/How-to-set-the-MIME-type.html" ignoreCase="true" negate="false" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Redirect" url="{HTTP_POST}/web-twain/docs/indepth/deployment/server.html#make-sure-the-static-files-can-be-served-correctly" appendQueryString="false" logRewrittenUrl="false" />
</rule>
<rule name="Redirect rule59 - https://www.dynamsoft.com/web-twain/docs/about/faqs.html" enabled="true" patternSyntax="ECMAScript">
<match url="about/faqs.html" ignoreCase="true" negate="false" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Redirect" url="{HTTP_POST}/web-twain/docs/indepth/faqs/?ver=latest" appendQueryString="false" logRewrittenUrl="false" />
</rule>
<rule name="Redirect https://www.dynamsoft.com/web-twain/docs/faq/how-to-enable-remote-scan.html" enabled="true" patternSyntax="ECMAScript">
<match url="faq/how-to-enable-remote-scan.html" ignoreCase="true" negate="false" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Redirect" url="{HTTP_POST}/remote-scan/docs/introduction/" appendQueryString="false" logRewrittenUrl="false" />
</rule>
<rule name="Redirect https://www.dynamsoft.com/web-twain/docs/faq/how-come-would-some-customers-need-local.dynamsoft.com.html" enabled="true" patternSyntax="ECMAScript">
<match url="faq/how-come-would-some-customers-need-local.dynamsoft.com.html" ignoreCase="true" negate="false" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Redirect" url="{HTTP_POST}/web-twain/docs/faq/how-come-would-you-need-local.dynamsoft.com.html" appendQueryString="false" logRewrittenUrl="false" />
</rule>
<rule name="Redirect https://www.dynamsoft.com/web-twain/docs/indepth/development/mobile-web-capture.html" enabled="true" patternSyntax="ECMAScript">
<match url="indepth/development/mobile-web-capture.html" ignoreCase="true" negate="false" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Redirect" url="{HTTP_POST}/use-cases/mobile-web-capture-sdk/" appendQueryString="false" logRewrittenUrl="false" />
</rule>
<rule name="Redirect index page https://www.dynamsoft.com/web-twain/docs/general-usage/image-import/index.html" enabled="true" patternSyntax="ECMAScript">
<match url="general-usage/image-import/index.html" ignoreCase="true" negate="false" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Redirect" url="{HTTP_POST}/web-twain/docs/general-usage/" appendQueryString="false" logRewrittenUrl="false" />
</rule>
<rule name="Redirect file import guide https://www.dynamsoft.com/web-twain/docs/extended-usage/file-import.html" enabled="true" patternSyntax="ECMAScript">
<match url="general-usage/file-import.html" ignoreCase="true" negate="false" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Redirect" url="{HTTP_POST}/web-twain/docs/extended-usage/file-import.html" appendQueryString="false" logRewrittenUrl="false" />
</rule>
<rule name="Redirect barcode processing guide https://www.dynamsoft.com/web-twain/docs/extended-usage/barcode-processing.html" enabled="true" patternSyntax="ECMAScript">
<match url="indepth/features/barcode.html" ignoreCase="true" negate="false" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Redirect" url="{HTTP_POST}/web-twain/docs/extended-usage/barcode-processing.html" appendQueryString="false" logRewrittenUrl="false" />
</rule>
<rule name="Redirect buffer caching guide https://www.dynamsoft.com/web-twain/docs/extended-usage/barcode-processing.html" enabled="true" patternSyntax="ECMAScript">
<match url="indepth/features/buffer.html" ignoreCase="true" negate="false" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Redirect" url="{HTTP_POST}/web-twain/docs/extended-usage/buffer-caching.html" appendQueryString="false" logRewrittenUrl="false" />
</rule>
<rule name="Redirect service configuration guide https://www.dynamsoft.com/web-twain/docs/extended-usage/dynamsoft-service-configuration.html" enabled="true" patternSyntax="ECMAScript">
<match url="indepth/deployment/service.html" ignoreCase="true" negate="false" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Redirect" url="{HTTP_POST}/web-twain/docs/extended-usage/dynamsoft-service-configuration.html" appendQueryString="false" logRewrittenUrl="false" />
</rule>
<rule name="Redirect PDF compression guide https://www.dynamsoft.com/web-twain/docs/extended-usage/pdf-compression.html" enabled="true" patternSyntax="ECMAScript">
<match url="indepth/features/pdfc.html" ignoreCase="true" negate="false" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Redirect" url="{HTTP_POST}/web-twain/docs/extended-usage/pdf-compression.html" appendQueryString="false" logRewrittenUrl="false" />
</rule>
<rule name="Redirect PDF processing guide https://www.dynamsoft.com/web-twain/docs/extended-usage/pdf-processing.html" enabled="true" patternSyntax="ECMAScript">
<match url="indepth/features/pdf.html" ignoreCase="true" negate="false" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Redirect" url="{HTTP_POST}/web-twain/docs/extended-usage/pdf-processing.html" appendQueryString="false" logRewrittenUrl="false" />
</rule>
<rule name="Redirect UI customization guide https://www.dynamsoft.com/web-twain/docs/extended-usage/ui-customization.html" enabled="true" patternSyntax="ECMAScript">
<match url="indepth/features/ui.html" ignoreCase="true" negate="false" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Redirect" url="{HTTP_POST}/web-twain/docs/extended-usage/ui-customization.html" appendQueryString="false" logRewrittenUrl="false" />
</rule>
<rule name="Redirect general initialization guide https://www.dynamsoft.com/web-twain/docs/general-usage/initialization.html" enabled="true" patternSyntax="ECMAScript">
<match url="indepth/features/initialize.html" ignoreCase="true" negate="false" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Redirect" url="{HTTP_POST}/web-twain/docs/general-usage/initialization.html" appendQueryString="false" logRewrittenUrl="false" />
</rule>
<rule name="Redirect general scanning guide https://www.dynamsoft.com/web-twain/docs/general-usage/scanner-image-acquisition.html" enabled="true" patternSyntax="ECMAScript">
<match url="indepth/features/input.html" ignoreCase="true" negate="false" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Redirect" url="{HTTP_POST}/web-twain/docs/general-usage/scanner-image-acquisition.html" appendQueryString="false" logRewrittenUrl="false" />
</rule>
<rule name="Redirect viewer configuration guide https://www.dynamsoft.com/web-twain/docs/general-usage/viewer-configuration.html" enabled="true" patternSyntax="ECMAScript">
<match url="indepth/features/viewer.html" ignoreCase="true" negate="false" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Redirect" url="{HTTP_POST}/web-twain/docs/general-usage/viewer-configuration.html" appendQueryString="false" logRewrittenUrl="false" />
</rule>
<rule name="Redirect image export guide https://www.dynamsoft.com/web-twain/docs/general-usage/image-export/index.html" enabled="true" patternSyntax="ECMAScript">
<match url="indepth/features/output.html" ignoreCase="true" negate="false" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Redirect" url="{HTTP_POST}/web-twain/docs/general-usage/image-export/index.html" appendQueryString="false" logRewrittenUrl="false" />
</rule>
<rule name="Redirect buffer management guide https://www.dynamsoft.com/web-twain/docs/general-usage/image-processing/buffer-management.html" enabled="true" patternSyntax="ECMAScript">
<match url="indepth/features/buffer.html" ignoreCase="true" negate="false" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Redirect" url="{HTTP_POST}/web-twain/docs/general-usage/image-processing/buffer-management.html" appendQueryString="false" logRewrittenUrl="false" />
</rule>
<rule name="Redirect general image editing guide https://www.dynamsoft.com/web-twain/docs/general-usage/image-processing/image-editing.html" enabled="true" patternSyntax="ECMAScript">
<match url="indepth/features/edit.html" ignoreCase="true" negate="false" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Redirect" url="{HTTP_POST}/web-twain/docs/general-usage/image-processing/image-editing.html" appendQueryString="false" logRewrittenUrl="false" />
</rule>
<rule name="Redirect extended usage guide https://www.dynamsoft.com/web-twain/docs/extended-usage/index.html" enabled="true" patternSyntax="ECMAScript">
<match url="indepth/features/" ignoreCase="true" negate="false" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Redirect" url="{HTTP_POST}/web-twain/docs/extended-usage/index.html" appendQueryString="false" logRewrittenUrl="false" />
</rule>
<rule name="Redirect license key usage guide https://www.dynamsoft.com/web-twain/docs/general-usage/license.html" enabled="true" patternSyntax="ECMAScript">
<match url="about/license.html" ignoreCase="true" negate="false" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Redirect" url="{HTTP_POST}/web-twain/docs/general-usage/license.html" appendQueryString="false" logRewrittenUrl="false" />
</rule>
<rule name="Redirect server deployment guide https://www.dynamsoft.com/web-twain/docs/general-usage/server-deployment.html" enabled="true" patternSyntax="ECMAScript">
<match url="indepth/deployment/server.html" ignoreCase="true" negate="false" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Redirect" url="{HTTP_POST}/web-twain/docs/general-usage/server-deployment.html" appendQueryString="false" logRewrittenUrl="false" />
</rule>
<rule name="Redirect server-side scripting guide https://www.dynamsoft.com/web-twain/docs/general-usage/server-side-scripting.html" enabled="true" patternSyntax="ECMAScript">
<match url="indepth/development/Server-script.html" ignoreCase="true" negate="false" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Redirect" url="{HTTP_POST}/web-twain/docs/general-usage/server-side-scripting.html" appendQueryString="false" logRewrittenUrl="false" />
</rule>
<rule name="Redirect hello world editing guide https://www.dynamsoft.com/web-twain/docs/hello-world/editing.html" enabled="true" patternSyntax="ECMAScript">
<match url="getstarted/editing.html" ignoreCase="true" negate="false" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Redirect" url="{HTTP_POST}/web-twain/docs/hello-world/editing.html" appendQueryString="false" logRewrittenUrl="false" />
</rule>
<rule name="Redirect hello world guide https://www.dynamsoft.com/web-twain/docs/hello-world/index.html" enabled="true" patternSyntax="ECMAScript">
<match url="getstarted/helloworld.html" ignoreCase="true" negate="false" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Redirect" url="{HTTP_POST}/web-twain/docs/hello-world/index.html" appendQueryString="false" logRewrittenUrl="false" />
</rule>
<rule name="Redirect hello world scan settings guide https://www.dynamsoft.com/web-twain/docs/hello-world/scan-settings.html" enabled="true" patternSyntax="ECMAScript">
<match url="getstarted/scansettings.html" ignoreCase="true" negate="false" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Redirect" url="{HTTP_POST}/web-twain/docs/hello-world/scan-settings.html" appendQueryString="false" logRewrittenUrl="false" />
</rule>
<rule name="Redirect hello world scanning guide https://www.dynamsoft.com/web-twain/docs/hello-world/scanning.html" enabled="true" patternSyntax="ECMAScript">
<match url="getstarted/scanning.html" ignoreCase="true" negate="false" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Redirect" url="{HTTP_POST}/web-twain/docs/hello-world/scanning.html" appendQueryString="false" logRewrittenUrl="false" />
</rule>
<rule name="Redirect hello world uploading guide https://www.dynamsoft.com/web-twain/docs/hello-world/uploading.html" enabled="true" patternSyntax="ECMAScript">
<match url="getstarted/uploading.html" ignoreCase="true" negate="false" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Redirect" url="{HTTP_POST}/web-twain/docs/hello-world/uploading.html" appendQueryString="false" logRewrittenUrl="false" />
</rule>
<rule name="Redirect imaging hardware https://www.dynamsoft.com/web-twain/docs/introduction/imaging-hardware.html" enabled="true" patternSyntax="ECMAScript">
<match url="getstarted/hardware.html" ignoreCase="true" negate="false" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Redirect" url="{HTTP_POST}/web-twain/docs/introduction/imaging-hardware.html" appendQueryString="false" logRewrittenUrl="false" />
</rule>
<rule name="Redirect about page to https://www.dynamsoft.com/web-twain/docs/introduction/index.html" enabled="true" patternSyntax="Wildcard">
<match url="about/" ignoreCase="true" negate="false" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Redirect" url="{HTTP_POST}/web-twain/docs/introduction/index.html" appendQueryString="false" logRewrittenUrl="false" />
</rule>
<rule name="Redirect supported file formats https://www.dynamsoft.com/web-twain/docs/introduction/supported-file-formats.html" enabled="true" patternSyntax="ECMAScript">
<match url="getstarted/filetype.html" ignoreCase="true" negate="false" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Redirect" url="{HTTP_POST}/web-twain/docs/introduction/supported-file-formats.html" appendQueryString="false" logRewrittenUrl="false" />
</rule>
<rule name="Redirect system requirements https://www.dynamsoft.com/web-twain/docs/introduction/system-requirements.html" enabled="true" patternSyntax="ECMAScript">
<match url="getstarted/platform.html" ignoreCase="true" negate="false" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Redirect" url="{HTTP_POST}/web-twain/docs/introduction/system-requirements.html" appendQueryString="false" logRewrittenUrl="false" />
</rule>
<rule name="Redirect general usage guide https://www.dynamsoft.com/web-twain/docs/general-usage/index.html" enabled="true" patternSyntax="ECMAScript">
<match url="getstarted/" ignoreCase="true" negate="false" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Redirect" url="{HTTP_POST}/web-twain/docs/general-usage/index.html" appendQueryString="false" logRewrittenUrl="false" />
</rule>
<rule name="Redirect RESTful API guide https://www.dynamsoft.com/web-twain/docs//extended-usage/restful-api.html" enabled="true" patternSyntax="ECMAScript">
<match url="indepth/development/restful.html" ignoreCase="true" negate="false" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Redirect" url="{HTTP_POST}/web-twain/docs//extended-usage/restful-api.html" appendQueryString="false" logRewrittenUrl="false" />
</rule>
<rule name="Redirect image export guide https://www.dynamsoft.com/web-twain/docs/about/index.html" enabled="true" patternSyntax="ECMAScript">
<match url="about/index.html" ignoreCase="true" negate="false" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Redirect" url="{HTTP_POST}/web-twain/docs/introduction/index.html" appendQueryString="false" logRewrittenUrl="false" />
</rule>
<rule name="Redirect camera api https://www.dynamsoft.com/web-twain/docs/info/api/Addon_Camera.html" enabled="true" patternSyntax="ECMAScript">
<match url="info/api/Addon_Camera.html" ignoreCase="true" negate="false" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Redirect" url="https://www.dynamsoft.com/web-twain/docs-archive/v18.0/info/api/Addon_Camera.html" appendQueryString="false" logRewrittenUrl="false" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>