URLRewriter重写的问题
<RewriterRule>
<LookFor> http://oa\.178b2b\.net/(.*)\.aspx\?(.*) </LookFor>
<SendTo> ~/Admin/OA 1.aspx?$2 < ndTo>
</RewriterRule>
上面的重写
地址栏里输入http://oa.178b2b.net/1.aspx?InfoID=88515&Type1=Sell
用Response.Write(Request.Url.ToString());
获得的地址为
http://oa.178b2b.net/Admin/OA/1.aspx?InfoID=88515&Type1=Sell&InfoID=88515&Type1=Sell
而我现在获得的必须是http://oa.178b2b.net/1.aspx?InfoID=88515&Type1=Sell
请各位大侠只招
[解决办法]
<RewriterRule>
<LookFor> http://oa\.178b2b\.net/(.*)\.aspx\?(.*) </LookFor>
<SendTo> ~/1.aspx?$2 < ndTo>
</RewriterRule>
[解决办法]
输入这个:http://oa.178b2b.net/1.aspx?InfoID=88515&Type1=Sell
要求得到这个:http://oa.178b2b.net/1.aspx?InfoID=88515&Type1=Sell
两者不是一样吗?
[解决办法]
按一楼的办法可以解决。
或者不用重写。。
输入地址和得到的地址一样~
[解决办法]
可以用js来获得
winodw.location.toString()