HTML Redirect


 

The HTML redirect allows to introduce a delay before the redirection is performed. It is sometimes called “META refresh” redirect.

Browsers will display the page during the specified time and then move forward to the page pointed to by the redirection.

HTML Redirect and Search Engines

We will specifically look at how Google handles HTML redirections. There are two cases :

- the delay is very short (0, 1 or 2 seconds)

The redirecting page is displayed so briefly that some users might not even notice its presence. Google decides that the content of this page should not be indexed and that the link should be handled as a redirection.

Google method to decide about the preferred URL seems to be similar to its processing of 302 redirections.

- the delay is long enough (3 seconds or more)

The redirecting page is clearly visible to most users. Google will index both the redirecting page as well as the page pointed to by the redirection.

HTML Redirect Source Code

<HTML>
<HEAD>

<META HTTP-EQUIV="refresh" CONTENT="seconds;URL=the-other-url">

</HEAD>
<BODY>

</BODY>
</HTML>

seconds : the number of seconds the page is displayed, before performing the redirection.

the-other-url : any absolute or relative URL that will be displayed after the delay has expired.

It is recommended that a standard link be added in the page for the few users of browsers that do not automatically follow redirections.

Examples of HTML Redirects

<META HTTP-EQUIV="refresh" CONTENT="5;URL=the-other-page.html">
The redirecting page will be displayed during 5 seconds. After this 5 seconds delay, it will be replaced by “the-other-page.html”.

<META HTTP-EQUIV="refresh" CONTENT="12;URL=http://www.internetofficer.com/">
The redirecting page will be displayed during 12 seconds. After this 12 seconds delay, it will be replaced by the home page of this site.

<META HTTP-EQUIV="refresh" CONTENT="0;URL=another-page.html">
The redirecting page will be displayed and immediately replaced by “another-page.html”. With this zero-delay, many users will not even notice the presence of the redirecting page.

Checking if an HTML Redirect Works

InternetOfficer has designed a free on-line tool to check the working of redirects. This new tool to check redirects analyses the HTTP-header and the page contents and identifies in seconds 301 and 302 redirects and HTML redirects (meta refresh).

5 Responses to “HTML Redirect”

  1. Bob Cahill says:

    What if I want the page to simply change after the visitor views a video?

  2. iJonathan says:

    it doesn’t work, i tried for my site and it doesn’t work. :(

  3. Jean-Luc says:

    The problem was caused by WordPress replacing my " (quotation mark) by ” (right double quotation mark)… It is corrected now.

  4. Breezer says:

    If you want it to change after any other event than a time-delay, you’ll need to use javascript or other plugin - if playing a video, the applet/code playing it needs to fire off either an event if that’s supported, or be able to call javascript that you can then make do what you want and edit the page’s url, or the plugin needs to be able to use the browser’s plugin API to switch page itself.

  5. neil strauss says:

    Previously this technique is used to increase the number of page views a website gets. With more pages viewed, the better it looks in Alexa and the more interested advertisers would be. This technique was also used in doorway pages where by you see a keyword stuffed page as indexed by google, but when you arrive there, you will be redirected to another page with the real content. Google has caught on with this usage and thus is frawned upon. So i would advice not to use html redirects. Use the .htaccess file to redirect a page instead.


 

Leave a Reply