Posts Tagged ‘meta refresh redirect’

Meta Refresh Redirect

Tuesday, November 3rd, 2009

If you need to redirect your visitors to a different webpage, one of the options available for that redirect is a meta refresh redirect. This code is normally used to refresh the webpage after a few seconds. But it’s also used for url redirects. You just lower the refresh interval to zero. In the example we have a interval of 5 seconds.

<html>
<head>
<meta http-equiv="refresh" content="2;url=http://www.domain.com/new-url.html" />
<title>This Webpage has moved</title>
</head>
<body>
The content of this webpage has moved. If you're not redirected to the new webpage in a few seconds, please click <a href="http://www.domain.com/new-url.html">here</a> to go to the new webpage.
</body>
</html>