这是网址,我正在尝试http://localhost:9900/survey-items/take-survey/8Uawxo1bnCOp%2bj1FhSTt1g%3d%3d,我希望它工作正常,没有问题,这个编码的网址是重要的,我想保留它

这是我的web.config。所有其他urls都工作正常
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite >
<rules>
<rule name="Angular Routes" stopProcessing="true">
<match url="(.*)" />
<conditions logicalGrouping="MatchAll" >
<add input="{UNENCODED_URL}" pattern="(.*)" />
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
</conditions>
<action type="Rewrite" appendQueryString="true" url="/" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration> 发布于 2021-09-21 08:47:37
通过添加以下与web.config中system.webServer下的安全性相关的内容,修复了此问题
<security>
<requestFiltering allowDoubleEscaping="true" />
</security>https://stackoverflow.com/questions/69251454
复制相似问题