Page 1 of 1

[Solved] Redirecting URLs?

Posted: Mon Mar 22, 2004 6:40 am
by mjseaden
Hi,

How do I automatically redirect a user to another URL if they arrive at a page using PHP or otherwise?

Many thanks

Mark

Posted: Mon Mar 22, 2004 6:48 am
by patrikG

Code: Select all

header("location: http:www.myurl.com");

Posted: Mon Mar 22, 2004 9:17 am
by malcolmboston
as patrick said:

Code: Select all

header("location: http:www.example.com");
this cannot be called before any output to the browser by the way