Reputation: 11
hi im in a folder /login/ & I want to use header to goto /apps/news/ so how do I type the location ?
Upvotes: 0
Views: 96
Reputation: 1172
header("Location: http://yourdomain/apps/news/");
Edit: Removing relative URL example after Pekka's comment, which is correct. See http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.30 for the details.
Upvotes: 3