|
|
|
automatic redirection with displaying the entered path
IMPORTANT: this is a php tutorial. So you'll need PHP on the server to be able to run this script. The bold text shows where you have to customize the script.
<html>
<?php
$url = "http://www.404lounge.net";
// write $url = $HTTP_REFERER; to show the previous page
$time = 8;
function redirection($url, $time)
{
echo ('<meta http-equiv="refresh" content="'.$time.';URL='.$url.'">');
}
?>
The page <font color="red"><?php echo $REDIRECT_URL ?> </font> don't exist.<br><br>
You will be redirected in <?php echo $time;?> seconds.<br><br>
If not, please click here:<br>
<a href="<?php echo $url ?>"><?php echo $url ?></a><br>
<?php
redirection($url, $time);
?>
|
|
demo: CLICK
| |