Location: PHPKode > scripts > Site Moved Script > site-moved-script/oldmove.php
<?php

/*
_____________ _____            ______  ___                     _________   ________               _____          _____
__  ___/___(_)__  /______      ___   |/  /______ ___   _______ ______  /   __  ___/__________________(_)________ __  /_
_____ \ __  / _  __/_  _ \     __  /|_/ / _  __ \__ | / /_  _ \_  __  /    _____ \ _  ___/__  ___/__  / ___  __ \_  __/
____/ / _  /  / /_  /  __/     _  /  / /  / /_/ /__ |/ / /  __// /_/ /     ____/ / / /__  _  /    _  /  __  /_/ // /_
/____/  /_/   \__/  \___/      /_/  /_/   \____/ _____/  \___/ \__,_/      /____/  \___/  /_/     /_/   _  .___/ \__/
                                                                                                        /_/

|Site Moved Script
|Copyright 2007 Nathan Schloss
|http://www.naterocks.com
|You can not claim that this script has have been created by any one other than Nathan Schloss
|**Please Edit the varables below to customize your settings**
*/

$oldsite="http://<old_site_base_url>"; //the base url of your old site (with a traling /)
$newsite="http://<new_site_base_url>"; //the base url of your new site (with a traling /)
$mm="The Site has been moved"; //moved page title
$message="Sorry, however the page that you wanted has been moved."; //the first sentence of the moved page


// there is no need to edit below here








$m=" ";
$m=$_GET['m'];

echo (
"<html>
<head>
<TITLE>".$mm."</TITLE>
<body bgcolor='lightblue'>
<center>
<font size=5 color=red><u>".$mm."</u></font>
<font color=darkred size=3>
<br><br><br>".$message." The url that you wanted (<b>".$oldsite.$m."</b>) no longer exists. <br>
You are going to be redirected to that page's equivalent(<b>".$newsite.$m."</b>) in 5 seconds, please go to the there from now on.
</font>
<META HTTP-EQUIV='Refresh'
      CONTENT='5; URL=".$newsite.$m."'>
</body>
</html>"
);

?>
Return current item: Site Moved Script