404.17 添加通配符'*' MIME 类型后显示错误 (IIS 7)



我正试图使无扩展url(domain.com/urlwithoutextension)以.html或.asp文件的形式被我的web服务器读取,而我得到的只是

  HTTP Error 404.17 - Not Found
    The requested content appears to be script and will not
    be served by the static file handler.

然后在错误下面,它说我可以试试这个: If you want to serve this content as a static file, add an explicit MIME map.

所以我在IIS 7.中添加了一个MIME映射

  Extension: *
  MIME Type: application/octet-stream

但我还是犯了这个错误。我所想做的就是让domain.com/thisurl作为一个.html文件查看,而不使用.html扩展名。帮助

我只是简单地将其更改为.,而不是用于MIME类型中的扩展的*,它运行得很好。感谢评论。

相关内容

最新更新