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.