IIS重定向保留QueryString? [英] IIS redirect preserve QueryString?

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

问题描述

我有一个网址:

http://mywebsite.com/Account/?Number=25191108&Name=Something&Remote=False

我是哪个想重定向到:

http://anotherwebsite.com / whatever /

并保留查询字符串:

http://anotherwebsite.com/whatever/?Number=25191108&Name=Something&Remote=False

有没有人有任何想法如何实现这个目标?

Does anyone have any ideas how to achieve this?

推荐答案


  1. 进入您要移动的域的IIS站点属性。在主目录选项卡中,单击重定向到URL选项

  2. 在重定向到框中,输入要移动到的域(无尾部斜杠),以及$ S $ Q - 例如, http://www.YourDomain.com $ S $ Q

  3. 接下来,检查说明客户端将被发送到上面输入的确切URL的选项,以及此资源的永久重定向

  1. Go into the IIS site properties for the domain you're moving from. In the "Home Directory" tab, click the option "A redirection to a URL"
  2. In the Redirect to box, enter the domain you wish to move to (no trailing slash), plus $S$Q - for example, http://www.YourDomain.com$S$Q
  3. Next, check the options that state the client will be sent to "The exact URL entered above", and "A permanent redirection for this resource"

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

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