portabletelly Posted May 20, 2007 Share Posted May 20, 2007 I have a php login page which is located in htdocs\login\process_password.php and im trying to redirect back one directory to index.php to htdocs\index.php header("location:\..\index.php"); // Re-direct to main.php What should the syntax be to go back one directory? have tried ..\index.php \..\index.php but none seem to work. Quote Link to comment https://forums.phpfreaks.com/topic/52164-header-redirect/ Share on other sites More sharing options...
spfoonnewb Posted May 20, 2007 Share Posted May 20, 2007 Should work like: <?php header("location: ../index.php") ?> Quote Link to comment https://forums.phpfreaks.com/topic/52164-header-redirect/#findComment-257279 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.