除了 IIS 7 中的重写 URL 图形界面之外,还有其他重写 URL 的方法吗?
有没有什么方法可以在没有用户界面的情况下做到这一点? 我的意思是非用户界面方式,比如我的网站上托管的配置文件,或者某种替代方式?
非常感谢!
Is there any way to do it, without the user interface?
I mean a non user interface way, something like a config file hosted in my web site, or some kind of alternative ?
Thank you very much!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,绝对是。
您的 URL 重写规则应存储在 web.config 文件中(除非明确禁止,这意味着它们将存储在 IIS 主配置文件中 - 我猜是出于安全和性能目的)。
以下是此类 web.config 文件的示例:
YES, absolutely.
Your URL Rewrite rules should be stored in web.config file (unless it is explicitly forbidden which means they will be stored in IIS main config file -- for security and performance purposes, I guess).
Here is an example of such web.config file: