我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

使用PHP重定向到用户页面

I want to redirect the users to their pages after successful log in. Now I'm using:

header('Location: http://localhost/test/user.php?id='. $user);

and this give me this type of redirection: "http://localhost/test/user.php?id=john" I want my redirected URL look like this: "http://localhost/test/user.php/john" I've tried

header('Location: http://localhost/test/user.php/'. $user)

but it don't redirect properly.

近期文章

  • 如何在php中使用c#webservice?
  • 获取PDO - $ handler vs $ stmt?
  • 不希望.htaccess更改我的网址链接
  • 无法在WP上的帖子标题之前添加项目符号
  • 通过JSON将数组从php传递到Java(android)
  • MySQL检查3个或更多连续条目
  • 在EC2微实例上连续运行Phirehose
  • Elastic Beanstalk:PHP电子邮件偶尔会消失
  • 错误消息:“异常:函数(”DressPerPrice“)不是此服务的有效方法”-SOAP Web服务
  • 如何使用PHP预先填充数据
  • 我如何通过串行方式从主页看到数据
  • 现在我需要将数据添加到数据库中以显示数据库
  • json_encode从php数组返回null
  • htaccess将查询字符串重定向到主页
  • 如何将页面连接到模态而不是将页面内容放在模态中
  • 如何跟踪Adwords访问者并将变量传递到下载的软件中?
  • 当没有行符合查询条件时,PDO语句究竟会返回什么?
  • 如何使用反向ajax
  • 来自PHP的exec但从cmd执行时DCOM权限错误正常工作(officetopdf.exe)
  • 处理网址锐利

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华