Saturday, August 2, 2008

URL Redirect (301)

Hi,

Today while working on my Site www.spasworldwide.com , I found that GOOGLE has decreased my site's PR . Earlier my site had a PR3 but now the Google Toolbar is showing PR2. May be the reason behind it was The GOOGLE Update which took place nearly 10-15 days ago.
So I started searching for the things which could help me in getting my higher PR back again. While studying the first thing I found was The Canonical URL'S , GOOGLE was showing 2 versions for my site :-
The First one which I had always preffered
1.) www.spasworldwide.com, and the Second one was
2.) spasworldwide.com (I never expected this thing)

This could be a reason for my decrease in PR as GOOGLE considers these 2 URL'S as different.
and give them different PR (in my case its 2 for both). But this could be a reason for my PR moving towards South.

So, the Solution I found for this problem was to do a Redirect (301) of URL from the spasworldwide.com to www.spasworldwide.com( which I preffered) , you can do the vice-versa also.
Doing this was rather simple than I thought follow the Steps Below and you can do it within 2-3 minutes (For Apache Servers only) :-
1.) Go to your .htaccess file (Though i am not so technically sound but --it must be in the public folder of your site for the Apache Webservers).

2.) Paste the code written below :-
RewriteEngine On
RewriteCond %{HTTP_HOST} ^domain\.com
RewriteRule (.*) http://www.domain.com/$1 [R=301,L]

NOTE :- Replace domain with the url(only domain name) of your site.
Eg. As in my case I did :-

RewriteEngine On
RewriteCond %{HTTP_HOST} ^spasworldwide\.com
RewriteRule (.*) http://www.spasworldwide.com/$1 [R=301,L]


Now all the your queries or searches for your domain will be redirected to the domain name including www as prefix to your website and help you in achieving a Higher PR.

Eg.

spasworldwide.com and www.spasworldwide.com are now the same.

1 comment:

Soh said...

Hey!
Thanks for the comment
Yours is neat too :)

HugZ