Forum Moderators: open
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.)
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?
RewriteEngine on
RewriteCond "%{HTTP_HOST} %{THE_REQUEST}" "^www\.([^ ]+) [^ ]+ ([^ ]+)" [nocase]
RewriteRule . [%1%2...] [R,L]
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 ...
+++
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.