paulman888888 Posted February 17, 2009 Share Posted February 17, 2009 I have read that 'HEADER ERRORS - READ HERE BEFORE POSTING THEM' but i still have no look. page 1.php header("Location: http://mysite.com/?page=logged_out"); //this works page 2.php header("Location: http://mysite.com/?page=Members_Home");// this doesnt Both files are included by the same script and have simlar content on each page. page 2.php when redirected gets this error; Not Found The requested URL / was not found on this server. Apache/1.3.33 Server at web0 Port 80 But when i press refresh it works Why is this? Thankyou all so much Paul H Quote Link to comment https://forums.phpfreaks.com/topic/145592-yet-another-header-problem/ Share on other sites More sharing options...
Cosizzle Posted February 17, 2009 Share Posted February 17, 2009 are they used before any other code? Quote Link to comment https://forums.phpfreaks.com/topic/145592-yet-another-header-problem/#findComment-764360 Share on other sites More sharing options...
premiso Posted February 17, 2009 Share Posted February 17, 2009 Your apache may not be setup to determine that "index.php" should be defaulted. Why not just add /index.php?page= to that and solve the problem easier/quicker? Or replace the index.php with the parsing page. Quote Link to comment https://forums.phpfreaks.com/topic/145592-yet-another-header-problem/#findComment-764363 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.