Skip to content

Commit 2680f74

Browse files
committed
fix: use relative redirect links
1 parent 5dfc6c7 commit 2680f74

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

web.config

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<!-- Important!!! Rule Name can't be repeated. -->
1212
<!-- <rule name="Rewrite Resource Page" stopProcessing="true">
1313
<match url="about/index.html" />
14-
<action type="Rewrite" url="https://www.dynamsoft.com/web-twain/resources/" appendQueryString="true" />
14+
<action type="Rewrite" url="{HTTP_POST}/web-twain/resources/" appendQueryString="true" />
1515
</rule> -->
1616

1717
<rule name="webp" stopProcessing="true">
@@ -28,37 +28,37 @@
2828
<rule name="Redirect about page" enabled="true" patternSyntax="ECMAScript">
2929
<match url="about/index.html" ignoreCase="true" negate="false" />
3030
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
31-
<action type="Redirect" url="https://www.dynamsoft.com/mobile-document-scanner/docs/web/guide/index.html" appendQueryString="false" logRewrittenUrl="false" />
31+
<action type="Redirect" url="{HTTP_POST}/mobile-document-scanner/docs/web/guide/index.html" appendQueryString="false" logRewrittenUrl="false" />
3232
</rule>
3333
<rule name="Redirect hello world" enabled="true" patternSyntax="ECMAScript">
3434
<match url="gettingstarted/helloworld.html" ignoreCase="true" negate="false" />
3535
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
36-
<action type="Redirect" url="https://www.dynamsoft.com/mobile-document-scanner/docs/web/guide/index.html" appendQueryString="false" logRewrittenUrl="false" />
36+
<action type="Redirect" url="{HTTP_POST}/mobile-document-scanner/docs/web/guide/index.html" appendQueryString="false" logRewrittenUrl="false" />
3737
</rule>
3838
<rule name="Redirect MWC release notes" enabled="true" patternSyntax="ECMAScript">
3939
<match url="releasenotes/index.html" ignoreCase="true" negate="false" />
4040
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
41-
<action type="Redirect" url="https://www.dynamsoft.com/mobile-document-scanner/docs/web/release-notes/index.html" appendQueryString="false" logRewrittenUrl="false" />
41+
<action type="Redirect" url="{HTTP_POST}/mobile-document-scanner/docs/web/release-notes/index.html" appendQueryString="false" logRewrittenUrl="false" />
4242
</rule>
4343
<rule name="Redirect MDS guide" enabled="true" patternSyntax="ECMAScript">
4444
<match url="guides/document-scanner.html" ignoreCase="true" negate="false" />
4545
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
46-
<action type="Redirect" url="https://www.dynamsoft.com/mobile-document-scanner/docs/web/guide/index.html" appendQueryString="false" logRewrittenUrl="false" />
46+
<action type="Redirect" url="{HTTP_POST}/mobile-document-scanner/docs/web/guide/index.html" appendQueryString="false" logRewrittenUrl="false" />
4747
</rule>
4848
<rule name="Redirect MWC guide" enabled="true" patternSyntax="ECMAScript">
4949
<match url="guides/mobile-web-capture.html" ignoreCase="true" negate="false" />
5050
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
51-
<action type="Redirect" url="https://www.dynamsoft.com/mobile-document-scanner/docs/web/code-gallery/mobile-web-capture/index.html" appendQueryString="false" logRewrittenUrl="false" />
51+
<action type="Redirect" url="{HTTP_POST}/mobile-document-scanner/docs/web/code-gallery/mobile-web-capture/index.html" appendQueryString="false" logRewrittenUrl="false" />
5252
</rule>
5353
<rule name="Redirect MWC customization guide" enabled="true" patternSyntax="ECMAScript">
5454
<match url="guides/customization-guide.html" ignoreCase="true" negate="false" />
5555
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
56-
<action type="Redirect" url="https://www.dynamsoft.com/mobile-document-scanner/docs/web/code-gallery/mobile-web-capture/customization-guide.html" appendQueryString="false" logRewrittenUrl="false" />
56+
<action type="Redirect" url="{HTTP_POST}/mobile-document-scanner/docs/web/code-gallery/mobile-web-capture/customization-guide.html" appendQueryString="false" logRewrittenUrl="false" />
5757
</rule>
5858
<rule name="Redirect MWC API Reference" enabled="true" patternSyntax="ECMAScript">
5959
<match url="api/mobile-web-capture.html" ignoreCase="true" negate="false" />
6060
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
61-
<action type="Redirect" url="https://www.dynamsoft.com/mobile-document-scanner/docs/web/code-gallery/mobile-web-capture/api.html" appendQueryString="false" logRewrittenUrl="false" />
61+
<action type="Redirect" url="{HTTP_POST}/mobile-document-scanner/docs/web/code-gallery/mobile-web-capture/api.html" appendQueryString="false" logRewrittenUrl="false" />
6262
</rule>
6363
</rules>
6464
</rewrite>

0 commit comments

Comments
 (0)