How do I specify a file redirect to a file one level above the current file in PHP? Here is my schematic so far:
-landing.html -ajax -checkLogin.php
You should really use absolute paths (at least relative to your document root).
Consider if you move checkLogin.php a directory deeper…
checkLogin.php
Any of the follow won't have a problem.
header("Location: /landing.html"); // or header("Location: http://www.example.com/landing.html");