在IIS中如何重定向? [英] In IIS how to redirect ?

查看:87
本文介绍了在IIS中如何重定向?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在IIS5.1中,如何通过仅在URL中键入文件名来重定向到特定文件.

例如,如果我键入"http://localhost/normal/home.html"或"http://localhost/medium/home.html",则页面应自动重定向到"http://localhost/standard/home.html" .


有什么解决办法吗?请帮帮我.


提前谢谢..

In IIS5.1 how to redirect to the specific file by just typing the file name in the URL.

For example if I type "http://localhost/normal/home.html" or "http://localhost/medium/home.html" the page should automatically redirect to "http://localhost/standard/home.html".


Is there any solution? please help me.


Thanks in advance..

推荐答案

你好

您只想将其用于特定的文件夹,还是要将其用于整个站点?还有IIS的哪个版本?

对于IIS 7,以下链接提供了一种可能的解决方案,但当您希望永久重定向时,此方法将起作用.我认为您需要的是相对重定向.看看是否有帮助.

http://technet.microsoft.com/en-us/library/cc732930% 28WS.10%29.aspx [ ^ ]
Hello

Do you want this for specific folder only or do you want it to be for the whole site? Also which version of IIS?

For IIS 7 below link has a possible solution but this will work when you want the redirection to be permanent. I think what you need is relative redirection. See if this help.

http://technet.microsoft.com/en-us/library/cc732930%28WS.10%29.aspx[^]


这篇关于在IIS中如何重定向?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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