Posts: 1,725
Threads: 105
Joined: Feb 2011
Reputation:
0
How do I make a page redirect with PHP?
Posts: 1,012
Threads: 94
Joined: May 2011
Reputation:
0
No roperson, You need Location in it. Or at least that's how I write it.
Posts: 1,725
Threads: 105
Joined: Feb 2011
Reputation:
0
07-28-2011, 09:29 PM
(This post was last modified: 07-28-2011, 09:32 PM by Eyrk.)
Oh. I failed.
Still, the code fails.
Posts: 1,725
Threads: 105
Joined: Feb 2011
Reputation:
0
No, really the code won't work, so I removed it.
Posts: 823
Threads: 75
Joined: Apr 2011
Reputation:
0
07-29-2011, 09:30 AM
(This post was last modified: 07-29-2011, 03:30 PM by Voided.)
[lua]header("LOCATION: www\.example.com");[/lua]
you're welcome
EDIT: somehow the link got messed up... fixed.
EDIT: hmm, no worky. I put a \ in front of the .
Posts: 1,012
Threads: 94
Joined: May 2011
Reputation:
0
07-29-2011, 02:10 PM
(This post was last modified: 07-29-2011, 02:22 PM by manbat116.)
Noob, your redirecting to a link, not a file.
If you wanted a file or page on a website. Why not do this? It takes up less space also.
[lua]
header('Location: file.php');
[/lua]
That's how you would do it