mejpark Posted June 9, 2009 Share Posted June 9, 2009 Hello, I am trying to redirect non-authenticated users to following url after login: http://xxxxxxxxxx.xxxx.xx.xx/dvd_process_script.php?response=accept&owner=3&dvdid=55&requester=9 But the URL above doesn't seem to be stored in $_SERVER['REQUEST_URI'] upon requesting it. The general logic of my script is: <?php if(user is logged in) { // redirect to home page } else { // this block executes because ALL users logged out echo $_SERVER['REQUEST_URI']; exit(); // for test purposes } ?> Confusingly, the above code outputs '/index.php' which was not what I was expecting. How would I go about redirecting to the desired url above (including get parameters)? Thanks, Mike Link to comment https://forums.phpfreaks.com/topic/161579-problem-redirecting-to-_serverrequest_uri-after-login/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.