Forum Moderators: Robert Charlton & goodroi

Message Too Old, No Replies

Page Rank problems - www and no-www are different

         

pccasino

7:33 pm on Jul 22, 2006 (gmt 0)

10+ Year Member



I got a unique problem, my site, www.example.com has a pagerank of 7, but if I type in http://example.com I get a pagerank of 8.

Should this be a concern?

Looking forward to your responses,
Thanks,
Paul

[edited by: tedster at 10:25 am (utc) on Nov. 16, 2006]
[edit reason] us example.com [/edit]

JoeSinkwitz

7:47 pm on Jul 22, 2006 (gmt 0)

10+ Year Member



The biggest concern I would have is if you don't have the proper 301s setup you open yourself up for getting caught in a dupe content filter; at the same time though, we've seen the implementation of the 301 redirects wreak absolute havoc when implemented on established sites such as yours.

Look into the 301 threads pretty closely before you decide what you want to do.

Cygnus

SuddenlySara

8:10 pm on Jul 22, 2006 (gmt 0)



I had the same situation and got hit pretty hard by Google on June 27th so figured what the heck and try a 301 to www. Just did this early this morning actually and on a 8 year old site SCARRY! Maybe you should wait and see what happens to me?

tedster

8:28 pm on Jul 22, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I agree with caution here -- there's been too much rushing to the 301 redirect "fix" for the www/no-www situation and not everyone has come out improved. If your Google traffic is strong, I would not be overly concerned. If traffic and ranking starts to wobble, then have this fix ready in your tool-kit.

Particularly, study the urls that Google sends traffic to. If they almost all have "www" or almost all have "no-www" then that gives you a cueas to which way your redirect would best go. But if it's a real mix of both types of urls, then any redirect would probably result in a bump in the road for at least a little while.

Again, I emphasize caution if your current Google traffic is strong.

g1smd

9:20 pm on Jul 22, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



>> I got a unique problem <<

No, this question gets asked several times per week for the last 18 months or more. There is much prior discussion.

If your site is to be listed as all www pages then make sure that every internal page links to "http://www.domain.com/" in that exact format.

SuddenlySara

10:10 pm on Jul 22, 2006 (gmt 0)



Good points, If your site is having no problems then don't fix what isn't broke.

If you recently saw a drop in Google for major keywords then you are in the same boat as many PR7 sites that have been around and hit hard recently. Your situation is NOT unique.

Do understand that both 301 sites and sites without redirect still can rank on top of google on top keywords. Bad example Wired magazine not only doesn't use 301 but uses multiple domains with the same content. Don't do that ;-)

Quadrille

11:26 pm on Jul 22, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



In general, I'd agree that what ain't broke don't need fixing.

In this case, however, there's a variation in the the little green bar.

The one real value of the little green bar is in telling you that you have a problem.

You have a problem; things will deteriorate. Sure, you can wait until you fall out of the serps, and then put in a 301 - but why wait?

A 301 from non-www to www, set up correctly and checked, can only help your site. You choice ;)

manca

1:21 am on Jul 23, 2006 (gmt 0)

10+ Year Member



Let me make one little digression here...

I was wondering what's better...setting up pure 301 redirection (via .htaccess, setting up one 301 redirect line), or setting up mod_rewrite redirection (w/o responsing with 301 header, but with pure 200 OK one)?

Do you know what's better, or do both of them are just the same thing?

steveb

2:12 am on Jul 23, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It's about as unique as sand on a beach. Add a 301 as soon as you can, otherwise you are just thumbing your nose at fate.

jtbell

3:10 am on Jul 23, 2006 (gmt 0)

10+ Year Member



I was wondering what's better...setting up pure 301 redirection (via .htaccess, setting up one 301 redirect line), or setting up mod_rewrite redirection (w/o responsing with 301 header, but with pure 200 OK one)?

You have to return an HTTP status code 301. You can do it with either .htaccess or mod_rewrite. If you're not using .htaccess for something else already, mod_rewrite is usually more efficient as far as the server is concerned. If you're already using .htaccess I don't think it makes much difference in efficiency to put the redirect there.

manca

11:33 am on Jul 23, 2006 (gmt 0)

10+ Year Member



I already use Mod_rewrite inside .htaccess file... and it doesn't return 301 header as I could've seen. It is just pure 200 redirection from http://example.com to http://www.example.com . Does it matter?

[edited by: engine at 2:09 pm (utc) on July 24, 2006]
[edit reason]
[1][edit reason] examplified [/edit]
[/edit][/1]

Dayo_UK

1:19 pm on Jul 23, 2006 (gmt 0)



>>I got a unique problem

>>>>No, this question gets asked several times per week for the last 18 months or more.

>>>>It's about as unique as sand on a beach.

Lol, yep - would be more unique if you did not have this problem.

Google have had such problems with this area it really is unbelievable.

g1smd

4:03 pm on Jul 23, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



>> It is just pure 200 redirection from http://site.com to http://www.site.com <<

Then that is NOT redirection.

THAT is serving duplicate content; the same content at two different URLs.

Get the 301 REDIRECT in place to fix that.

They you have one URL that serves content with a 200 status, and one URL that says "the content is over THERE".

jtbell

5:33 pm on Jul 23, 2006 (gmt 0)

10+ Year Member



You can do it with either .htaccess or mod_rewrite.

D-oh! Of course you can do mod_rewrite inside .htaccess. I was mixing up two ways you can vary it: (a) use mod_rewrite or a simple "redirect" directive, (b) put it in .htaccess or in the server configuration file.

I run my own server, so I always put my redirects in the server config file for efficiency's sake, but most people don't have that option. I don't think there's much difference between mod_rewrite and the "redirect" directive.

manca

12:37 am on Jul 24, 2006 (gmt 0)

10+ Year Member



jtbell, so something like this:

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

is the right thing? (using mod_rewrite) (R=301, should be 301 redirect, am I right?)

[edited by: engine at 2:09 pm (utc) on July 24, 2006]
[edit reason]
[1][edit reason] examplified [/edit]
[/edit][/1]

JoaoJose

1:04 am on Jul 24, 2006 (gmt 0)

10+ Year Member



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

this works pretty well.

[edited by: JoaoJose at 1:05 am (utc) on July 24, 2006]

[edited by: engine at 2:10 pm (utc) on July 24, 2006]
[edit reason]
[1][edit reason] examplified [/edit]
[/edit][/1]

manca

10:30 am on Jul 24, 2006 (gmt 0)

10+ Year Member



JoaoJose, you code is exactly the same as mine :)

g1smd

10:40 am on Jul 24, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



It is not quite the same.

The first one redirects only site.com to www.site.com

The second one redirects anything that is not www.site.com to www.site.com - that is it will also redirect foo.site.com and bar.site.com to www.site.com.

There must be a space before the exclamation mark to make it work. The forum software removes that space here.

.

My version of this is:

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

manca

1:57 pm on Jul 24, 2006 (gmt 0)

10+ Year Member



Yeah, correct...
What does [NC] actually do?

jtbell

6:01 pm on Jul 24, 2006 (gmt 0)

10+ Year Member



NC means No Case and says that the pattern matching should not be case-sensitive. So WWW.ExAmPlE.cOm would match www.example.com.