此问题有时可能是由于禁用或拒绝接受 cookie 造成的
我在 drupal6 中编写 php 重定向时遇到以下问题。
这就是问题所在:
页面未正确重定向 Firefox 检测到服务器正在以永远无法完成的方式重定向对此地址的请求。
此问题有时可能是由于禁用或拒绝接受 cookie 造成的。
我写过如下代码:
global $base_url,$user;
$uid = $user->uid;
$msg = "Please select your user type (capital provider or project sponsor) and agree to the terms and conditions. Then, you’ll be able to post and find capital or a project in which to invest.";
$url = $base_url."/editProfile?message=".$msg;
header("Location: $url");
I am getting the below problem in drupal6 when writing php redirect.
This is the problem:
The page isn't redirecting properly Firefox has detected that the server is redirecting the request for this address in a way that will never complete.
This problem can sometimes be caused by disabling or refusing to accept cookies.
I have written code like:
global $base_url,$user;
$uid = $user->uid;
$msg = "Please select your user type (capital provider or project sponsor) and agree to the terms and conditions. Then, you’ll be able to post and find capital or a project in which to invest.";
$url = $base_url."/editProfile?message=".$msg;
header("Location: $url");
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要测试当前页面是否与您要重定向到的页面相同。
You need to test if the current page is the same as the page you want to redirect to.