Page is a not externally linkable
- Code, Content, and Presentation
-- PHP Server Side Scripting
---- Redirecting "/myfile.php" to "/myfile"


kwasher - 1:13 am on Apr 14, 2008 (gmt 0)


Try this function (I think I got this from php.net a while ago):


###BEGIN REDIRECT IF HEADER ALREADY SENT
function Redirect($url) {
if(headers_sent()) {
echo "<script type='text/javascript'>location.href='$url';</script>";
} else {
header("Location: $url");
}
}
//usage
//Redirect('somefile.html');


Thread source:: http://www.webmasterworld.com/php/3626028.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com