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. 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") ?> Link to comment https://forums.phpfreaks.com/topic/52164-header-redirect/#findComment-257279 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.