Improve your index pages pagerank

Most people dont realise that when u dont have your .htaccess file setup properly for incoming links u can have 2 different page ranks for your domain.

for example:

Code:

http://www.bluepearl-design.com

Code:

http://bluepearl-design.com

May have different page ranks even though their the same page. Google will even sometimes penalise you for double content

Here is a way to use the .htaccess file so that all URLs resolve to just one domain. Please note this is for Apache servers

Code:

RewriteEngine On RewriteCond %{HTTP_HOST} !^www.bluepearl-design.com [NC] RewriteCond %{HTTP_HOST} !^$  RewriteRule ^(.*) http://www.bluepearl-design.com/$1 [L,R=301]

The first line turns on the rewrite engine so the code will work

The second line checks to see if current host is TRUE or FALSE

The third line is pretty much the same as the 2nd, these lines are testing to see what the current host is.

The fourth line is executed if the previous two conditions return TRUE

I hope this tutorial is helpful for members

Also because i have spent alot of time in the last few months optimising my sites for SEO, studying online books, reading SEO forums i have become pretty knowledgeable with web site SEO (Search Engine Optimisation) im going to create a new category on these forums for members who would like to ask questions or get advice on how to better improve their sites traffic.

 Here is the code to rewrite all incoming links to ‘domain.com/index.php’ or domain.com/index.html’ to domain.com

Code:

RewriteEngine On RewriteCond %{REQUEST_METHOD} GET RewriteCond %{THE_REQUEST} "T /index.php" RewriteCond %{QUERY_STRING} ^$ RewriteRule .* http://www.bluepearl-design.com/? [L,R=301]

This code used with the code in the first post will cause all incoming links to

Code:

http://domain.com domain.com http://www.domain.com/index.html http://domain.php

to all point to

Code:

http://www.domain.com

This will increase your pagerank because google will not have to divide the pagerank between all the various different domains that point to the same page.

Share this post
del.icio.us Digg Furl Reddit Ask BlinkList blogmarks BUMPzee Blogg-Buzz Google Ma.gnolia muti Netscape Newsvine PlugIM ppnow Rojo Shadows Simpy Slashdot Socializer Sphere Spurl StumbleUpon Tailrank Technorati Windows Live Wists Yahoo! Help

 

Leave a Reply

You must be logged in to post a comment.


Bluepearl Network © 2004-2007 - Designed by Bluepearl Design