-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathweb.config
More file actions
66 lines (63 loc) · 3.97 KB
/
web.config
File metadata and controls
66 lines (63 loc) · 3.97 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
<?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="{HTTP_POST}/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}/mobile-document-scanner/docs/web/{R:1}.webp" matchType="IsFile" />
</conditions>
</rule>
<rule name="Redirect about page" enabled="true" patternSyntax="ECMAScript">
<match url="about/index.html" ignoreCase="true" negate="false" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Redirect" url="{HTTP_POST}/mobile-document-scanner/docs/web/guide/index.html" appendQueryString="false" logRewrittenUrl="false" />
</rule>
<rule name="Redirect hello world" enabled="true" patternSyntax="ECMAScript">
<match url="gettingstarted/helloworld.html" ignoreCase="true" negate="false" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Redirect" url="{HTTP_POST}/mobile-document-scanner/docs/web/guide/index.html" appendQueryString="false" logRewrittenUrl="false" />
</rule>
<rule name="Redirect MWC release notes" enabled="true" patternSyntax="ECMAScript">
<match url="releasenotes/index.html" ignoreCase="true" negate="false" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Redirect" url="{HTTP_POST}/mobile-document-scanner/docs/web/release-notes/index.html" appendQueryString="false" logRewrittenUrl="false" />
</rule>
<rule name="Redirect MDS guide" enabled="true" patternSyntax="ECMAScript">
<match url="guides/document-scanner.html" ignoreCase="true" negate="false" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Redirect" url="{HTTP_POST}/mobile-document-scanner/docs/web/guide/index.html" appendQueryString="false" logRewrittenUrl="false" />
</rule>
<rule name="Redirect MWC guide" enabled="true" patternSyntax="ECMAScript">
<match url="guides/mobile-web-capture.html" ignoreCase="true" negate="false" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Redirect" url="{HTTP_POST}/mobile-document-scanner/docs/web/code-gallery/mobile-web-capture/index.html" appendQueryString="false" logRewrittenUrl="false" />
</rule>
<rule name="Redirect MWC customization guide" enabled="true" patternSyntax="ECMAScript">
<match url="guides/customization-guide.html" ignoreCase="true" negate="false" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Redirect" url="{HTTP_POST}/mobile-document-scanner/docs/web/code-gallery/mobile-web-capture/customization-guide.html" appendQueryString="false" logRewrittenUrl="false" />
</rule>
<rule name="Redirect MWC API Reference" enabled="true" patternSyntax="ECMAScript">
<match url="api/mobile-web-capture.html" ignoreCase="true" negate="false" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Redirect" url="{HTTP_POST}/mobile-document-scanner/docs/web/code-gallery/mobile-web-capture/api.html" appendQueryString="false" logRewrittenUrl="false" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>