301 redirect with Querystring - IIS6

时光毁灭记忆、已成空白 提交于 2019-12-11 06:49:08

问题


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'

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?


回答1:


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

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.



来源:https://stackoverflow.com/questions/7480530/301-redirect-with-querystring-iis6

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!