IIS上的URL重定向 [英] URL redirection at IIS
本文介绍了IIS上的URL重定向的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要更改现有网站的网址。为此,我还需要保留旧URL,当用户请求旧URL时,它应自动重定向到新URL。我怎样才能实现这一目标?
Hi, I need to change the URL for an existing website. For this, i need to still keep the old URL as well and when user requests for old url, it should automatically redirect to new URL. How can i achieve this?
推荐答案
您正在寻找 URL重写。
1. 提示/技巧:使用ASP.NET重写网址 [ ^ ]
2. [MSDN]在ASP.NET中重写URL [ ^ ]
3. 重定向ASP.NET使用IIS重写模块进行无扩展的遗留URL [ ^ ]
您可以找到关于此主题的许多其他文章。
You are looking for URL Rewrite.
1. Tip/Trick: Url Rewriting with ASP.NET[^]
2. [MSDN] URL Rewriting in ASP.NET[^]
3. Redirecting ASP.NET Legacy URLs to Extensionless with the IIS Rewrite Module[^]
You can find many other articles on this topic.
这篇关于IIS上的URL重定向的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文