301使用Querystring重定向-IIS6 [英] 301 redirect with Querystring - IIS6

查看:72
本文介绍了301使用Querystring重定向-IIS6的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在IIS6 301重定向上遇到问题.我为域名domain.com设置了以下重定向,以转到www.domain.com $ S $ Q(在站点属性"中的家庭目录"下). 选中对此资源进行永久重定向"复选框.但没有选中在上面输入的确切网址"

I'm having a problem with an IIS6 301 redirect. I've set up the following redirect for the domain domain.com to go to www.domain.com$S$Q (under Home Direcotry in Site Properties). Checked the A permanent redirection for this resource check box. but didnt check 'The exact URL entered above'

如果我导航到domain.com,则可以毫无问题地重定向到www.domain.com.但是,如果我转到domain.com/page.asp?type=xx,则会重定向到www.domain.com/page.asp?type=xx/page.asp

If I navigate to domain.com I get redirected to www.domain.com with no problems. But if I go to domain.com/page.asp?type=xx I get redirected to www.domain.com/page.asp?type=xx/page.asp

有人知道我在做什么错吗?

Anyone know what I'm doing wrong?

推荐答案

即使看起来违反直觉,也必须选中上面输入的确切URL".

You have to have "The exact URL entered above" checked, even if it seems counter-intuitive.

请参见 http://www. developerfusion.com/code/4678/permanent-301-redirect-with-querystring-in-iis/中有关如何在扩展中处理变量和剩余路径的说明.

See http://www.developerfusion.com/code/4678/permanent-301-redirect-with-querystring-in-iis/ for the explanation regarding how the variables and remaining path are treated in the expansion.

这篇关于301使用Querystring重定向-IIS6的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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