打开web.config

<httpErrors errorMode="Custom" existingResponse="PassThrough">
            <remove statusCode="404" subStatusCode="-1" />
            <error statusCode="404" prefixLanguageFilePath="" path="/404.html" responseMode="ExecuteURL" /></httpErrors>
    </system.webServer>

去掉httpErrors的属性

 existingResponse="PassThrough"


即可

相关文章:

  • 2022-12-23
  • 2022-01-05
  • 2021-12-07
  • 2022-01-11
  • 2021-08-26
  • 2022-02-07
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-01
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案