I have a first.php page with
header("Location: script/script1.php")
and script1.php has another
header("Location: first.php")
but it sends me obviously to /script/first.php.
Is there a way to redirect it to <root>/first.php instead of <root>/script/first.php?
have a try with this:
or use an absolute path or url instead.
Explanation:
..is the unix/linux expression used for ‘parent directory’. The Internet is unix land, so that rules applies there too.