Forum Moderators: open

Message Too Old, No Replies

www.domain.com vs domain.com

Sometimes with www, sometimes without

         

jeroen9

3:15 pm on Mar 11, 2004 (gmt 0)

10+ Year Member


I have a website http://mydomain.com with a PageRank of 4. http://www.mydomain.com has a PageRank of 3. I try to get all links linking to http://mydomain.com, so that only this link will be shown in Google.

My problem is that sometimes http://www.mydomain.com is shown in Google and not http://mydomain.com. This has the consequense that my position in Google is very bad sometimes.

Does anybody have a solution?

(Sorry for my possibly bad english, english is not my main language.)

Nipsy

4:05 pm on Mar 11, 2004 (gmt 0)

10+ Year Member



Use a 301 redirect on [site.tld...] to point to [site.tld....]

No5needinput

7:38 pm on Mar 11, 2004 (gmt 0)

10+ Year Member Top Contributors Of The Month



In the past mysite.com had a pr of 5 and www.mysite.com a pr3 This was caused by a couple of inbound links using "www" prefix.

The back links for mysite.com showed 83 and www.mysite.com showed 3 backlinks.

Just recently I've noticed that with or without the www my site has a pr5 and the backlinks are exactly the same for both - even the order of the backlinks.

Yet I have done nothing to redirect www and non www.
has Google fixed the www and non www problem?

jeroen9

8:14 pm on Mar 11, 2004 (gmt 0)

10+ Year Member



Nipsy, is that also possible with a free freeservers account? I tried it but, but it didn't work.

Nipsy

9:11 pm on Mar 11, 2004 (gmt 0)

10+ Year Member



You may be able to ul a .htaccess file with the correct handler (documented numerous other places on ww) for a freeservers account, but only if they're running apache. I have NO IDEA how to do ANYTHING under IIS.

rogerdp

10:27 pm on Mar 11, 2004 (gmt 0)

10+ Year Member



If you have Apache with mod_rewrite installed, put this in your topmost .htaccess file to redirect everything from "www.domain" to "domain".

RewriteEngine on
RewriteCond "%{HTTP_HOST} %{THE_REQUEST}" "^www\.([^ ]+) [^ ]+ ([^ ]+)" [nocase]
RewriteRule . [%1%2...] [R,L]

GoogleGuy

11:27 pm on Mar 11, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'd agree with Nipsy. No5needinput, we have put some additional checks in that help some people. I think new canonicalization rules rolling in over the next few weeks should help more sites as well, but glad it's working for you..

SyntheticUpper

11:33 pm on Mar 11, 2004 (gmt 0)

10+ Year Member



new canonicalization rules

GG, this sounds interesting. Can you provide more details?

GoogleGuy

7:52 am on Mar 12, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



We rebuild this data every few months and it's getting toward time to rebuild it again. We try to guess for a domain whether domain.com is the same as www.domain.com (it isn't always), so that can help with this issue.

best,
GG

steveb

7:55 am on Mar 12, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Too bad there isn't a meta tag thingee for a bot to read that could say "my canonical url is www"

rogerdp

10:43 am on Mar 12, 2004 (gmt 0)

10+ Year Member



If such a meta tag existed, how could you trust it? Redirection is the way to go.

What domains have different sites at 'www.domain' and 'domain'?

No5needinput

7:15 pm on Mar 12, 2004 (gmt 0)

10+ Year Member Top Contributors Of The Month



Thanks GG.

Any chance of you being able to tell us if the pr from the non www domain or visa versa, is passed onto and added to the listed site?

plumsauce

5:23 am on Mar 13, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member




We rebuild this data every few months and it's getting toward time to rebuild it again.

kinda slow, no?


We try to guess for a domain whether domain.com is the same as www.domain.com (it isn't always), so that can help with this issue.

dns, dns, dns

if a site has it properly set up, then they should
not have to worry. if they are too lame to get it
right, then let *them* suffer. Not the other way
around.

yeah, I know, like a broken record ...

+++

rogerdp

6:23 am on Mar 13, 2004 (gmt 0)

10+ Year Member



plumsauce: Two things,

1) Given how many pages Google indexes, a COMPLETE update of a LIVE database seems astonishingly fast if it can be done in a few months.

2) What does DNS have to do with virtual/shared hosting?

bignet

9:26 pm on Mar 13, 2004 (gmt 0)

10+ Year Member



Too bad there isn't a meta tag thingee for a bot to read that could say "my canonical url is www"

robots.txt can do just that if you know about dns and webservers, but even that is not needed to avoid such problems created by users

g1smd

5:12 pm on Mar 15, 2004 (gmt 0)

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



>> We rebuild this data every few months and it's getting toward time to rebuild it again. <<

Ah, that explains a feature I have seen where www.domain.com and www.domain.net had both separate PR and separate listed backlinks for the first 6 months that the site existed, then suddenly one day the PR and link list were identical for both, and have remained that way ever since.

>> Too bad there isn't a meta tag thingee for a bot to read that could say "my canonical url is www". <<

No meta tag, but there is a 301 redirect in the .htaccess file for Apache (or the equivalent for IIS) to do just this. That one liner can be used to redirect on a file-by-file basis, or for a whole domain at once.

surfgatinho

9:21 pm on Mar 18, 2004 (gmt 0)

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



I'm sure this has been mentioned but I couldn't find where it started and what the relevance is.
Anyway, if I enter my keywords my site is on about page 5. If I append -www the ste comes up number 2.
I regard the site address as being mydomain.com, i.e. no www. Is this all related or should I be barking up another tree?