How to Redirect a URL in PHP
Moderator: General Moderators
-
DudeBori82
- Forum Commoner
- Posts: 26
- Joined: Thu Nov 18, 2004 10:09 am
- Location: Florida
How to Redirect a URL in PHP
I am trying to execute code in php, then when it is finished, redirect the user to a new page. Is this possible? If so, what is the code?
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
Once the code is parsed then it is parsed. Why not just put it at the bottom of the page?
Code: Select all
<?php
header("Location: http://www.newsite.com");
?>-
DudeBori82
- Forum Commoner
- Posts: 26
- Joined: Thu Nov 18, 2004 10:09 am
- Location: Florida
-
DudeBori82
- Forum Commoner
- Posts: 26
- Joined: Thu Nov 18, 2004 10:09 am
- Location: Florida