-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathweb.config
More file actions
36 lines (33 loc) · 1.41 KB
/
web.config
File metadata and controls
36 lines (33 loc) · 1.41 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
<?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}/document-viewer/docs/{R:1}.webp" matchType="IsFile" />
</conditions>
</rule>
<rule name="Redirec rule 1" enabled="true" patternSyntax="ECMAScript">
<match url="about/index.html" ignoreCase="true" negate="false" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Redirect" url="https://www.dynamsoft.com/document-viewer/docs/introduction/" appendQueryString="false" logRewrittenUrl="false" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>