Hi how do I use header for folders that are inside inside a folder ? for folders that are inside a folder I use
header("../news");
to go one step up & into another folder.
[man]header/man is used to modify the outgoing HTTP headers, which are in the form of "Header-Name: Value".
In other words, "../news" isn't an HTTP header and doesn't make any sense.
And if you meant the location header, it takes an absolute URI, including protocol, i.e.
header('location: http://example.com/path/to/file');
if you meant: header('Location: ... then you should use the full url
doh: I'll refresh the page next time 🆒