Response.RedirectPermanent 是否自动传递查询字符串变量?
我已经用谷歌搜索到死亡,但无济于事。我有一个我们不想再使用的页面,但是,根据它的调用方式,我想传递查询字符串(如果有)。我编写了一些丑陋的代码来添加查询字符串(如果有),但如果 Response.RedirectPermanent 已经这样做了,那么我可以跳过该步骤。微软网站并不清楚。谢谢。
I have googled to death this to no avail. I have a page that we no longer want to use, however, dpending on how it was called, I want to pass the querystring along if there is one. I wrote some ugly code to add the querystring if there is one, but if the Response.RedirectPermanent already does it then I could skip that step. The microsoft web site is not clear. Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
301 重定向将重定向到您传入
RedirectPermanent
的任何内容,正是如此。它不会将当前查询字符串重新附加到您重定向到的内容。A 301 redirect will redirect to whatever you pass into
RedirectPermanent
, exactly that. It will not re-append the curent query string to what you are redirecting to.