So I want to redirect a page in a directory, for example auth/login.php
, to another page, at auth/
. The page is actually called auth/index.php
but I don't want this to show up to the client. How can I do this using this PHP code:
header("Location: /auth/");
However, I want the filename to be relative, e.g. ../
instead of hard-coded as auth
. Is this possible, and how?