更新时间:2023-11-19 13:22:04
您是重定向到部分URL还是完整的URL(包含主机,协议等)?我在PHP中看到很多示例,其中302的重定向没有完整的 http://server.dom/path/to其中的/ file 将被IE忽略或破坏。在Rails中,这可能是路由器中foo_path和foo_url之间的区别。
Is your redirect to a partial URL or a complete URL (with host, protocol, etc.)? I have seen plenty of examples in PHP where a redirect with 302 that does not have a complete http://server.dom/path/to/file in it will be ignored or mangled by IE. In Rails, this can be the difference between foo_path and foo_url in the router.