Setting
up a 301 redirect.
A 301 Redirect
is the most efficient and Search Engine Friendly method for webpage
redirection. The server basically sends an HTTP header back to the
client browser with an HTTP status code stating that the object
has moved along with the new location to find it. There are several
reasons for a webmaster to use redirection:
Typing
in www.yourdomain.com and yourdomain.com will get you to the same
site but you might actually be stealing page rank from yourself.
Search engines treat yourdomain.com and www.yourdomain.com as seperate
sites. You might end up splitting your vistors in half and lowering
your page rank. Instead of having 100 visitors to www.yourdomain.com
you could end up with 50 visitors to yourdomain.com and 50 visitors
to www.yourdomian.com. The solution for this is to use 301 redirects.
If
your site has changed identity. A Web site might change its domain
name for several reasons. By using a 301 redirect to the new URL,
visitors will still end at the correct page. If done correctly you
can redirect a changed web page without altering the Page Rank of
the old page. This technique does bear the downside in the delay
of an additional request to the original websites server,
but is hardly noticable.
How
to:
1)
FTP into your hosting account.
2)
Look in the root or public_html folders and try to find a file called
.htaccess
3)
Find the .htaccess file, make a copy of it somewhere for backup.
Next, open the file in a text editor.
4)
Add the lines to your .htaccess file. This will redirect all traffic
to www.yourdomain.com.
RewriteEngine on
rewritecond %{http_host} ^yourdomain.com [nc]
rewriterule ^(.*)$ http://www.yourdomain.com/$1 [r=301,nc]
5)
If you changed domain names just point your old domain.com to your
new domain.com.
RewriteEngine on
rewritecond %{http_host} ^olddomain.com [nc]
rewriterule ^(.*)$ http://www.newdomain.com/$1 [r=301,nc]
Test
by entering the URL of the old domain into your browser. If you
are redirected immediately to the new website address, you have
successfully implemented 301 Redirect. when the search engine visits
your old web page, it will be automatically redirected to the new
web page. The 301 redirect method is considered ethical and white
hat. The 301 is the safest and easiest way to Redirect files and
also preserve Page Ranksand search engine rankings.
Scott S.
|