IIS服务器URL重定向 [英] IIS server Url Redirect

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

问题描述



我已经找了半个小时(不是这个论坛上最好的搜索工具),我找不到将特定网址重定向到其他网址的简单示例

,例如 http:// localhost / PHS / Attachments / [ ^ ]

到login.aspx文件夹



如何在iis服务器中完成此任务???

提前预计

Hi,
i've looked for a half an hour (not the best search utility on this forum) and i can't find the simple example of redirecting of specific url to other url
such as http://localhost/PHS/Attachments/[^]
to a login.aspx folder

How can i complete this task in iis server ???
thanx in advance

推荐答案

嗨Sajid,

希望这就是你要找的东西:



配置Web服务器将请求重定向到相对目标(IIS 7) [ ^ ]

配置Web服务器以将请求重定向到完全目标(IIS 7) [ ^ ]



查看更多 -

如何创建重写规则:

创建重写规则for the url-rewrite-module [ ^ ]



**您可以跟踪失败的重写,参见 using-failed-request-tracing-to-trace-rewrite-rules [ ^ ]



干杯,

Edo
Hi Sajid,
Hope it's what you were looking for:

Configure the Web Server to Redirect Requests to a Relative Destination (IIS 7)[^]
Configure the Web Server to Redirect Requests to an Exact Destination (IIS 7)[^]

See more -
How to create rewrite rules:
creating-rewrite-rules-for-the-url-rewrite-module[^]

** You can track failed rewrites, see using-failed-request-tracing-to-trace-rewrite-rules[^]

Cheers,
Edo


正如您所提到的login.aspx让我想到了你想要实现基于表单的身份验证。你不需要IIS级重定向来做到这一点,因为IIS与asp.net一起支持这个。

看看这里:

http://msdn.microsoft.com/en-us/library/ff647070.aspx [ ^ ]

http://support.microsoft.com/kb/301240 [ ^ ]
As you mentioned login.aspx that draw me to the assumption, that you want to implement form based authentication. You don't need IIS level redirecting to do that, since IIS has support for this in conjunction with asp.net.
Take a look here:
http://msdn.microsoft.com/en-us/library/ff647070.aspx[^]
http://support.microsoft.com/kb/301240[^]


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

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