HTML to Redirect a WWW Page


You can automatically redirect users from one WWW page to another WWW page by using the meta tag HTTP-EQUIV:

<META HTTP-EQUIV="REFRESH" 
      CONTENT = "time-in-seconds; URL=new-url">
Replace time-in-seconds with a number and new-url with the new URL.

This HTTP-EQUIV meta tag would like something like this used on a page:

<html>
<head>
<META HTTP-EQUIV="REFRESH"
      CONTENT = "5; URL=http://www.bulletin.uga.edu">
<title>
Courses Website has Moved
</title>
</head>
<body bgcolor="#ffffff">
The courses website has moved to
<a href="http://bulletin.uga.edu/">http://bulletin.uga.edu</a>.
<p>
If you are not automatically transported to this site in 5 seconds,
you can select the above URL.
</p>
</body>
</html>
A time of 5 seconds has been chosen. Even though it may be tempting to set the time to 0, it can cause a bit of a problem for users of some browsers (including Netscape). If the "Back" button is pressed, the redirected page is immediately displayed (a "ping-pong" effect).


www.uga.edu image Main Page: WWW Pages for Departments, Organizations, and Units
Contact: www@www.uga.edu
URL: http://www.uga.edu/help/redirect.html
Modified on: Tuesday, 09-Nov-1999 08:36:23 EST