重写所有URL改变ASPX扩展到html [英] Rewrite all urls change aspx extension to html

查看:112
本文介绍了重写所有URL改变ASPX扩展到html的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的IIS URL重写模块中新我不如何做到这一点。

I'm new in the iis url rewrite module and i not how to do this.

例如,我有这个网址:

http://localhost/section.aspx?x=section1&IDSection=45

,我想这样的:

http://localhost/section~x~section11~IDSection~45.html

任何想法?
感谢您的帮助。

Any ideas? Thanks for your help.

推荐答案

这是在IIS7使用URL重写模块解决方案:

this is the solution using URL Rewrite module in IIS7:


  • 创建新的空白入站规则

  • 的模式是:^款〜X〜([_ 0-9A-Z - ] +)〜IDSection〜([0-9] +)HTML

  • 重写操作:Section.aspx X = {R:1}&安培; IDSection = {R:2}?

  • 创建新的黑色outbund规则

  • 创建新的precondition下一个格式:

    • 条件输入:{} RESPONSE_CONTENT_TYPE

    • 模式:^ text / html的

    这篇关于重写所有URL改变ASPX扩展到html的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆