Auto Refresh

Refreshing or redirecting off old web pages (to newer versions or locations) is very often necessary if you move (and/or upgrade) your web pages a lot.

When I moved this site off from http://j.desilva.tripod.com/ to http://www.desilva.biz/, I had to re-direct web surfers to the new location by editing each web page in Tripod like in the example below.

Meta HTTP-EQUIV="REFRESH"

Originally, this very article: Auto Refresh was located at http:j.desilva.tripod.com/wd_010427.htm in Tripod. When I moved and published the latest copy of it here, I went back to the page in Tripod and edited it like this:

code:
<html>
<head>
<meta http-equiv="content-type" content="text/html;
 charset=iso-8859-1" />
<meta http-equiv="refresh" content="0;
 url=http://www.desilva.biz/wd_010427.php" />
<title>Refresh Page</title>
</head>
<body>
<p>This page has moved to</p>
<p><a href="http://www.desilva.biz.com/wd_010427.php">
http://www.desilva.biz/wd_010427.php</a></p>
<p>If you are not re-directed to the page automatically,
 please use the link above.</p>
</body>
</html>

And saved this file as http://j.desilva.tripod.com/wd_010427.htm in Tripod. So now, anyone who finds their way to this old page will be automatically re-directed to this very page here! (Oh well, not really - because now this page has once again been moved :) )

The real engine that makes the above code work is this one line:

code:
<meta http-equiv="refresh" content="0;
 url=http://www.desilva.biz/wd_010427.php" />

Content="0"?... What is that?

The "0" is the number of seconds before the page will automatically refresh! So, it could be anything.

And don't forget to add a link further down the page so that the next time a Search Engine Spider crawls around in those old pages, their index will be updated!

Re-directs in PHP

The above example is in HTML simply because my old and original web pages at Tripod only support HTML. However, if your old webserver supports PHP, this is how you would re-direct / refresh your pages using PHP:

Edit http://j.desilva.tripod.com/wd_010427.php and simply paste over, these 3 lines:

php:


<?php
header( 'location:http://www.desilva.biz/wd_010427.php' );
?>


Power user? Need more than that? Check out more PHP re-directs / refresh methods.

If you have nothing else better to do now...

Go to http://j.desilva.tripod.com/wd_010427.htm to see the HTML at work! (mind the dreaded Tripod popups - you have been warned!)

TOP

Do you like the new design?

 Yes

 No

 Don't know