The
facts about Auto-Redirecting
Auto-Redirecting is the technique of automatically sending surfers
to a different page. Usually, the browser receives a page which
contains the code to automatically load a different page. It is
possible for the page to be switched at the server so that the
browser receives only one page, but auto-redirecting usually means
receiving a page which automatically moves the surfer on to a
different page.
There
are many valid reasons for auto-redirecting, such as redirecting
people to browser-specific page versions, and redirecting people
when a domain has moved. The search engines are not generally
against the technique as long as the reason for it is valid and
surfers are not mis-directed after clicking on a link in their
search results. In fact, the engines auto-redirect people all the
time. Have you ever tried going to http://www.aj.com/ or http://www.av.com/?
You won't get to either of those domains. Actually you will get to
them, but you will be quickly redirected to ask.com (AskJeeves)
and altavista.com respectively. Or, if you are in an area of the
world where there are local versions of those engines, you will be
redirected to the local version (see Cloaking for IP delivery).
So why are some people dead against auto-redirecting? If the
engines do it, then surely it is ok for the rest of us to do it.
Yes it is! The method can be used unscrupulously where a person
clicks on a link in the search results, they go to the actual
page, but the page immediately redirects them to a page on an
entirely different topic. The surfer ends up at a place where s/he
had no intention of going. That's wrong, and it's a very good
reason to be against misuses of the auto-redirect method, but it
is no reason at all to be against redirects in general.
And yet some people are against auto-redirecting just because it
doesn't seem right. They think that, if a person clicks on a link
to a page, then it is morally wrong if the person doesn't end up
at that specific page. They don't seem to realize that the person
who clicks the link, doesn't click to go to a specific web page;
they probably don't even notice what the page is called. They
click on a link to go to what the link text tells them is at the
other end. They are not the least bit concerned if they get there
via an intermediary page, as long as they get there, and get there
quickly - and that's important.
People want to get to the other end quickly! They don't want
delays along the way. They don't want to be stopped half-way there
and asked to read some text, only to discover that they have to
click again to get to where they have already clicked to go to.
They've already chosen to go there; they don't want to be made to
choose again along the way. They really don't want that. Altavista
doesn't think that they want it when people type "av.com"
into the browser address box, and so Altavista sends them to their
destination immediately - without delay. That's the way it should
be.
What is Auto-Redirecting
Auto-redirecting is the technique of automatically sending a site
visitor to another page once s/he has landed on a page. The other
page is often on the same website, but it can be on a different
site altogether. In fact, auto-redirecting is used when a website
has been set up for the sole purpose of ranking highly in the
search engines. When visitors arrive at a page on the site, from a
listing in the search engine results, they are automatically
redirected to the main site.
On-site auto-redirecting is common when a page, within the site,
has been created specifically to rank highly in the search
engines, but has been so highly optimized that it is no good for
people to actually see. Auto-redirecting takes visitors to the
'proper' page within the site.
Both of those uses are not wanted by the search engines, and they
sometimes penalise a page or site for doing it. Fortunately, the
engines are not able to automatically detect most of the
auto-redirecting methods.
The engines are not against auto-redirecting when it is done for
they what consider to be a valid reason. E.g. when you have posted
a message in a forum, you often get a confirmation page which will
wait a few seconds and then auto-redirect you to the messages.
Auto-Redirecting Methods
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 the <head> section of the page,
and looks like this:-
<head>
...head section stuff (Title, Description,etc.)...
<meta http-equiv="refresh" content="5;url=pagename.html">
</head>
The "content" parameter contains two parts, seperated 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 immeditate
redirect, one of the other auto-redirecting methods is much
better.
The "Javascript" method
Javascript auto-redirects cannot be automatically detected by the
search engines because they don't yet parse Javascript. The script
can be placed anywhere on the page, but it is best to place it in
the <head> section so that it runs as soon as the page
begins to load. This is a typical example:-
<head>
<script language="javascript"><!--
location.replace("pagename.html")
//-->
</script>
...other head section stuff (Title, Description,etc.)...
</head>
"pagename.html" can be any relative or absolute URL,
just like a hyperlink URL.
The use of Javascript's "replace" function causes the
new page to replace the current page in the browser's Back
button's History list. If a visitor then clicks the Back button to
go back to where s/he came from, s/he doesn't go back to the page
with the auto-redirect but, instead, goes to the page before that.
It avoids the annoying occurence of the Back button taking a
person back the auto-redirecting page, which immediately takes
him/her forward again.
The "Form" method
Spiders can't fill form fields in, and so they make no attempt at
submitting forms, which means that forms can be used for
auto-redirecting.
What isn't generally realised about forms is that the URL in a
form's 'action' parameter is just a URL that the browser requests
from the server. It is given special treatment by the browser by
adding some name=value pairs to the requested URL, but if none
exist, the browser will still make the request for the URL.
Javascript can be used to submit the form as soon as the page
begines to load. Here is what a Javascript automatic form
submission looks like, together with the form to submit:-
<head>
<script language="javascript"><!--
document.myform.submit()
//-->
</script>
...other head section stuff (Title, Description,etc.)...
</head>
<body>
<form name="myform" action="pagename.html"
method="get"></form>
...rest of the page...
"myform" can be any name and "pagename.html"
can be any absolute or relative URL.
Summary
If a few seconds delay is acceptable to the functioning of the
site, then the Meta Tag Refresh method of auto-redirecting is by
far the best one to use, because search engines don't object to
it.
If an instant redirect is necessary, or if the page to be
redirected from should not be seen by people, then one of the
other methods should be used, the most common being the Javascript
method.


