Iis7 URL 重写整个目录,剥离index.aspx
iis7 Windows 2008服务器 iis重写模块 .net 4
非常简单的问题,我正在使用重写模块并发现它非常好,但我需要帮助设置一个我似乎无法正确的规则。
http://www.vinylsearcher.com/dance-music/downtempo-records/
标准: 对 dance-music 文件夹的任何请求都必须去掉末尾的 index.aspx,这样它就会像这样结束:
http://www.vinylsearcher.com/dance-music/downtempo-records/
不是
http://www.vinylsearcher.com/dance-music/downtempo-records/index .aspx
但也必须适用于:
http://www.vinylsearcher.com/dance-music/downtempo-records/mostexpense/index.aspx
需要重写为:
http://www.vinylsearcher.com/dance-music/downtempo-records/mostexpense/
我已经绕了一圈又一圈,所以希望得到一些帮助。
感谢您。
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
将其添加到 /defaultDocument 部分下方的 web.config 文件中:
add this to the web.config file underneath the /defaultDocument section: