jimfog Posted July 12, 2013 Share Posted July 12, 2013 My project(developed locally with NetBeans) has the following structure: http://localhost/Appointments/Administrator/ http://localhost/Appointments/Frontend/ I have a file in the Admin folder http://localhost/Appointments/Administrator/logout.php which I want it to access a file in the frontend folder http://localhost/Appointments/Frontend/login.php with this code which is found at logout.php: header("Location: /..Frontend/login.php"); The result is this: Not FoundThe requested URL /Appointments/Administrator/..Frontend/login.php was not found on this server. How do I have to structure the dir above so that I can have access to login.php. Surely, I could copy login.php to the admin dir but I think this would be redundant. Link to comment Share on other sites More sharing options...
jimfog Posted July 12, 2013 Author Share Posted July 12, 2013 I found the solution: header("Location: ../Frontend/login.php"); Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now