limitphp Posted January 22, 2009 Share Posted January 22, 2009 How do you do a page redirect with php? I can't remember if it was a header(location).... I have a myaccount.php page, where if they are not logged in, I want to send them to the home page. Link to comment https://forums.phpfreaks.com/topic/142003-solved-page-redirect-with-php/ Share on other sites More sharing options...
chester Posted January 22, 2009 Share Posted January 22, 2009 I use header("Location: page.php"); but remember not to output anything before it. Link to comment https://forums.phpfreaks.com/topic/142003-solved-page-redirect-with-php/#findComment-743541 Share on other sites More sharing options...
DeanWhitehouse Posted January 22, 2009 Share Posted January 22, 2009 Or meta refresh http://www.i18nguy.com/markup/metatags.html Link to comment https://forums.phpfreaks.com/topic/142003-solved-page-redirect-with-php/#findComment-743543 Share on other sites More sharing options...
limitphp Posted January 22, 2009 Author Share Posted January 22, 2009 thanks Link to comment https://forums.phpfreaks.com/topic/142003-solved-page-redirect-with-php/#findComment-743547 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.