Meta Refresh Redirect

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>
This entry was posted in Programming and tagged . Bookmark the permalink.

8 Responses to Meta Refresh Redirect

  1. click here says:

    it seems quite trivial to expect

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>