The "Meta Refresh Tag" method
This is the one auto-redirecting method that the engines can automatically detect, or so it is believed. It is also the one method that the engines are perfectly happy with as long as there is a reasonable delay between landing on a page and being redirected from it. At least 5 seconds is recommended.
The code for it must be in thesection of the page, and looks like this:-
…head section stuff (Title, Description,etc.)…
<meta http-equiv="refresh" content="5;url=pagename.html">
The "content" parameter contains two parts, separated by a semi-colon. The first part is the delay, in seconds, before the redirection occurs. The second part is the URL to redirect to which, like any hyperlink, can be a relative URL (as above) or an absolute URL.
For search engine optimization purposes, a delay in the auto-redirection is not usually desirable. Using the Meta Refresh Tag with a delay of 0 (zero) seconds is not recommended, because search engines can read HTML, Meta tags are HTML, and people have had penalties from redirecting that way. For an immediate redirect, one of the other auto-redirecting methods is much better.
…other head section stuff (Title, Description,etc.)…
"pagename.html" can be any relative or absolute URL, just like a hyperlink URL.