Skip to content

Commit 2393f65

Browse files
hitautodestructposva
authored andcommitted
Removed lines causing issues with iis 10 (#1646)
Removed the lines causing issues in windows server 2016 iis version 10. Added more exact instructions for adding a config file.
1 parent 4d4d228 commit 2393f65

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

docs/en/essentials/history-mode.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@ For Node.js/Express, consider using [connect-history-api-fallback middleware](ht
7070

7171
#### Internet Information Services (IIS)
7272

73+
1. Install [IIS UrlRewrite](https://www.iis.net/downloads/microsoft/url-rewrite)
74+
2. Create a `web.config` file in the root directory of your site with the following:
75+
7376
```xml
7477
<?xml version="1.0" encoding="UTF-8"?>
7578
<configuration>
@@ -82,17 +85,10 @@ For Node.js/Express, consider using [connect-history-api-fallback middleware](ht
8285
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
8386
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
8487
</conditions>
85-
<action type="Rewrite" url="index.html" />
88+
<action type="Rewrite" url="/" />
8689
</rule>
8790
</rules>
8891
</rewrite>
89-
<httpErrors>
90-
<remove statusCode="404" subStatusCode="-1" />
91-
<remove statusCode="500" subStatusCode="-1" />
92-
<error statusCode="404" path="/survey/notfound" responseMode="ExecuteURL" />
93-
<error statusCode="500" path="/survey/error" responseMode="ExecuteURL" />
94-
</httpErrors>
95-
<modules runAllManagedModulesForAllRequests="true"/>
9692
</system.webServer>
9793
</configuration>
9894
```

0 commit comments

Comments
 (0)