Welcome to the Compass Designs website, powered by Joomla 1.5! The goal of this new site is to be the place to bookmark if you are looking for quality Joomla templates, tutorials, news and tips.

Get Free Pagerank for your Joomla Website

Feb 05 2007 - Tagged in: Untagged 

I can't recall why, but today I happened to go to that fine "other" about Joomla Joomla, http://compassdesigns.net. I was shocked to find that it was an active competitor to my own blog at http://www.compassdesigns.net. It even had its own page rank!

I immediately reached for my research about canonical URL's to get my pagerank back!

"What on earth are you talking about?" I hear you say...

 Try this quick test for your web site. Navigate to the two following URL's:

http://yoursite.com

http://www.yoursite.com

If you can actually have these show up in your browser then you have a problem. What is happening is that Joomla will happily process both URL's, with and without the www.

"Is that bad?" you now ask.

Actually yes, I found that on this site, compassdesigns.net actually had a pagerank. I expect people had been linking to me and had been lazy with the www. This meant from Google's point of view, they were actually TWO sits and each was getting ranked individually. Not to even mention the perils of duplicate content!

Luckily there is an easy fix. You just need to edit your .htaccess fiel with the following:

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

Note, in the Joomla htaccess file the "RewriteEngine On" statement is already there, you don't need it twice.

 

Check you secret competitors page today, you might be shocked at how well it is doing! 


Comments (23)add comment

Chris Baskind said:

...
Well, I hadn't thought of that. ;-)

I never express my address at Lighter Footstep with the "www" prefix. If I enter:

http://www.lighterfootstep.com

... the site will connect, but the URL displays as I'd like it:

http://lighterfootstep.com .

This is the behavior I want, right?

/Chris
February 06, 2007

Hummerbie said:

...
No only should you redict your nor www. domain name...but tell Google also what you prefer.

Just Login in to your webmaster tools from Google.
There is an option called "Preferred Domain" there you can tell Google what your standard domain should be.

It tells you that they (Google) "will use your choice as a suggestion to improve our indexing"

February 06, 2007

Administrator said:

...
Chris,
You can pick on or the other and set up the redirect, the key is that you are not diluting your pagerank by google seeing two sites...
February 06, 2007

alledia said:

...
A nice tip. This www and non-www issue seems like a problem that domain registrars need to talk about more.

I see quite a few sites where one or the other isn't even working at all.
February 06, 2007

Chris Baskind said:

...
Thanks, Hummerbie. I'll be looking at mt Google Webmaster panel today.

Useful topic, guys.

February 08, 2007

Nick Kotarski said:

...
It's nice to know that someone else is drawing this to peoples attention.
I wrote an article about canonical URL's a few months ago: http://kotarski.co.uk/articles...l_url.html.
Lots of really big websites don't seem to be aware of this problem (see http://www.rics.org/ and http://rics.org/ both of which have a page rank of 6 ) but I found one that is even more stupid the other day. Look at these two: http://www.peoplerecruitment.com/ and http://peoplerecruitment.com/ they go to different places entirely.
I don't know if the host/designer is being 'clever' or incompetant?
I guess that my vote would be the latter as presumably they are getting penalised by Google for duplicate content.

Nick Kotarski
http://kotarski.co.uk
February 19, 2007

qwerty123 said:

...
any good automatic link exchange softwares on the market? i've found one, payperlink.net it works pretty good. better than axandra. any otrhers i should be aware about?
February 23, 2007

Mike Pittman said:

...
Forget redirects. Do the following;

1. In the Google webmasters page, tell it that http://www.example.com and http://example.com are the same site. Then tell it which you prefer, and it will index your site the way you prefer from then on. The page ranking will be the same.

2. In Joomla, edit the configuration.php file and set "Livesite" to the exact URL you want - with or without "www". Joomla internal links will then display the way you want. You can see what your Livesite variable is set to in "Global Configuration" in the administrator backend, but you must either set it properly when you install Joomla, or manually edit the config file after install. It's not hard.

3. While you're mucking around with your configuration.php file, why not increase your security by moving it out of the public_html directory - follow the instructions here - http://blog.buyhttp.com/move-y...f-webroot/

Mike.
February 23, 2007

Faraz Ahmed said:

...
Actually, this same thing had happened to an html site of mine. I just didnt do anything because I didnt know if it was bad. Now,reading your article makes me think about some possible solution.

Or maybe I should just let it be. But when you talk about duplicate content it makes me nervous.

HOpe I can find a solution to this .

bye,
faraz ahmed
Simple Joomla Tutorials for dummies.http://www.squidoo.com/building-a-joomla-website/
March 16, 2007

Mohsin Rasool said:

...
Wow this is great article, you are right,
one of my sites with www has pr3, and without pr2 LOL.
so i have to insert this code into .htaccess and now
all traffic is redirected to www.domain...

July 24, 2007 | url

Dewald - Fighting Duplicate Content on Joomla said:

...
I found a novel way to get rid of duplicate content issues, and that's to make each page view of a particular page unique. Then it doesn't matter if the same content is seen at more than one location on the site because the "copies" are not the same. I've implemented it with a Joomla mambot and PHP routine. Check it out at http://www.phpspinner.com
December 10, 2007 | url

Andrey said:

...
Thank you! I didn't think about this problem.
I inserted this code. I hope it's useful))
June 05, 2008 | url

sözlük said:

...
as far as i know most of the joomla sef components does this automaticly
October 10, 2008 | url

kumpulduit said:

...
thanks for article... i had fixed my site
November 13, 2008 | url

hemen çevir said:

...
joomla is great. i use and like this script.
November 17, 2008 | url

Sistemas FOX Colombia Foro Soporte said:

...
Thanks for this article, fixed


http://www.sistemasfox.com
December 02, 2008 | url

Delicious Monster said:

...
I am loathe to make such radical changes on a single recommendation but you do give food for thought...
December 13, 2008 | url

Seattle inspector said:

...
Q? I just changed my 301 and both my http://www.pacificnorthwestinspections.com and non www site have a PR of 2... will this increase with the redirect added? How much does it really matter?
December 29, 2008 | url

vdrover said:

...
Back in the day, leaving off the 'www' often messed up WYSIWYG editors. As a result, i've been doing this htaccess trick for sometime, even though there is no issue with WYSIWYG editors anymore smilies/smiley.gif
January 19, 2009 | url

Raptorak said:

...
Thanks a lot for this information. I didn't even think about the www making a huge difference.

Setting your preferred domain in Google tools makes it to where you don't need to do the htaccess change? Or is it best to do both?
March 29, 2009 | url

dennoxde said:

...
thanks for the tips, awesome tips smilies/cool.gif
April 20, 2009 | url

Internet Radio said:

...
Well, this also happened to me in the summer of 2008 when both the pagerank and the number of backlinks to my site were different, but nowadays, in 2009, google treats www.domain.com and domain.com as the same, and both the pagerank and the inbound links are the same.
May 12, 2009 | url

Karen Leslie said:

...
So does this mean that nowadays (2009) this isn't an issue any more?
June 06, 2009 | url

Write comment

busy

Get News, Tips and Coupons by Email

Did you enjoy this Compass Design blog post/tutorial?

Then sign up for regular monthly newsletter. I'll send you great tips on Joomla, email only offers and news from the Joomlasphere.

Email: First Name:

 

Register or login for free downloads

Get Joomla Tips by RSS or Email

 

Joomla 1.5 BookGet the Joomla 1.5 Book

Get the #1 best-selling about Joomla 1.5 from Amazon and free access to the companion site, joomlabook.com.

 

Latest Comments

Get a Joomla 1.5 Website

Need Joomla 1.5 Hosting?
Get a turnkey Joomla 1.5 website with full service support and education.

-->