Tuesday, 7 February 2012

Using an .Htacess File for 301 Redirect

A common problem is having links that point to the www version as well as an non-
www version of your home page. An example is vs. A simple fix for this is to create an .htaccess file that
contains the following lines of code:

RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.YourDomain\.com
RewriteRule ^(.*)$$1

Simply place this file in the root (usually www) folder of your server. This will redirect
any non-www links to the www version of your site to keep PageRank going to a
single version of your home page.

About Non-Reciprocating Links

It is common to have outgoing links that are for the benefit of your customers and
that you don’t expect reciprocal links back to your site for.

A good example are links that go to book pages on Clearly such links
can benefit your visitors, but is not going to reciprocate by placing links
on their site back to your site either.

There are two methods you can use to prevent “leakage” of PageRank from non-
reciprocating links on your site. Don’t go overboard with this. It is only an issue if you
have LOTS of outbound, non-reciprocating links. You are leaking PR only from the
page that contains outbound links. So the leakage is quite minimal.

Using the NOFOLLOW Link Attribute

Simply use the “NOFOLLOW” attribute in any link you don’t want Google to follow
(and hence transfer PageRank from). The syntax is as follows:

<a href="" rel="NOFOLLOW">

This attribute is also used by Google to combat blog spam, where people spend all
day on blogs posting links back to their site in order to boost PageRank.

No comments:

Post a Comment