Jump to content

header redirect


portabletelly

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.