Jump to content

problem accessing directory


Recommended Posts

My project(developed locally with NetBeans) has the following structure:





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 Found

The 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

I found the solution:

header("Location: ../Frontend/login.php");

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...