Redirect from an HTML page

chobo picture chobo · Mar 23, 2011 · Viewed 3.2M times · Source

Is it possible to set up a basic HTML page to redirect to another page on load?

Answer

Valerij picture Valerij · Mar 23, 2011

Try using:

<meta http-equiv="refresh" content="0; url=http://example.com/" />

Note: Place it in the head section.

Additionally for older browsers if you add a quick link in case it doesn't refresh correctly:

<p><a href="http://example.com/">Redirect</a></p>

Will appear as

Redirect

This will still allow you to get to where you're going with an additional click.