langenf Posted September 13, 2008 Share Posted September 13, 2008 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. Link to comment https://forums.phpfreaks.com/topic/124079-redirecting-the-header-to-a-file-one-folder-above/ Share on other sites More sharing options...
DarkWater Posted September 13, 2008 Share Posted September 13, 2008 ../app/index.php?message=urlencode('Login to continue') And use urldecode to fix it later. Link to comment https://forums.phpfreaks.com/topic/124079-redirecting-the-header-to-a-file-one-folder-above/#findComment-640605 Share on other sites More sharing options...
langenf Posted September 13, 2008 Author Share Posted September 13, 2008 Thanks for your lightning fast answer . Its going exactly where its supposed to, however it looks like this and the message is not displayed... http://localhost/app/index.php?message=urlencode(%27Login%20to%20continue%27) Link to comment https://forums.phpfreaks.com/topic/124079-redirecting-the-header-to-a-file-one-folder-above/#findComment-640612 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.