malfist Posted June 16, 2007 Share Posted June 16, 2007 I have this code: if(isset($_SESSION['isLoggedIn']) || $_SESSION['isLoggedIn'] == false) { header("Location: http://www.pragmaticpoems.com/membersOnly.php"); die(); } and it outputs: Not Found The requested URL /www.pragmaticpoems.com/membersOnly.php was not found on this server. at the webpage http://www.pragmaticpoems.com/www.pragmaticpoems.com/membersOnly.php when I have it redirect. But when I have: if(isset($_SESSION['isLoggedIn']) || $_SESSION['isLoggedIn'] == false) { header("Location: http://www.pragmaticpoems.com/membersOnly"); die(); } And it outputs: Not Found The requested URL /membersOnly was not found on this server. at the page: http://www.pragmaticpoems.com/membersOnly If I put the right name, it appends it to the current dir, if I put the wrong name it goes to the wrong file without a problem. This is driving me crazy. I've tried adding garbage to the end of .php with ? and defining a few unused variables but that doesn't work. Anyone know what I'm doing wrong? Please! I'm pulling out my fingernails (I've already pulled out all my hair). Quote Link to comment https://forums.phpfreaks.com/topic/55867-header-redirection/ Share on other sites More sharing options...
king arthur Posted June 16, 2007 Share Posted June 16, 2007 I seem to remember a problem like this, try using relative URLs instead of absolute ones. Quote Link to comment https://forums.phpfreaks.com/topic/55867-header-redirection/#findComment-276000 Share on other sites More sharing options...
malfist Posted June 16, 2007 Author Share Posted June 16, 2007 Done tried that, didn't work either. Quote Link to comment https://forums.phpfreaks.com/topic/55867-header-redirection/#findComment-276002 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.