Jump to content

Redirecting the header to a file one folder above


langenf

Recommended Posts

hi,

i have a file in app \scripts folder that checks if the user is logged and if not redirects the user to the index.php in the app folder.

header("Location:../index.php?message=login to continue");

but it goes to the the topmost area(root).  im using windows and the app folder is in the root. sorry for asking this here, but i cant understand why it isnt working.

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.