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

Posted on Feb 05, 2007
Tagged in Untagged 

I can't recall why, but today I happened to go to that fine "other" about 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 (12)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 07, 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 22, 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

Write comment
You must be logged in to a comment. Please register if you do not have an account yet.

busy

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:

Find more posts tagged with...

Get Joomla Tips by RSS or Email


Register or login for free downloads



Joomla 1.5 Book

Get the "have to have book" about Joomla 1.5 from Amazon and free access to the companion site, joomlabook.com.

Joomla 1.0 eBook

Get the best selling Joomla 1.0 Admin Manual eBook

Also available in hard copy from
Support independent publishing: buy this book on Lulu.

Who's Here

We have 216 guests and 1 member online

Stuff I Recommend

Basecamp