[英]HttpHandler to redirect url in ASP.NET
I'm trying to write an HttpHandler that does url redirection , 我正在尝试编写一个执行URL重定向的HttpHandler,
For example, every time I write the url : www.google.com 例如,每次我写网址:www.google.com
It redirects to www.yahoo.com 它将重定向到www.yahoo.com
How can I do that ? 我怎样才能做到这一点 ?
What defines do I need to change is IIS (7.0) 我需要更改的定义是IIS(7.0)
Thanks, Joe 谢谢乔
为什么不使用IIS URL重写模块 ?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.