Forum Moderators: open

Message Too Old, No Replies

full URL not showing in Google

Issues regarding omission of the www. prefix of URL's in google

         

s9_uk

4:33 pm on Jul 8, 2003 (gmt 0)

10+ Year Member


This may have been addressed here previously, so apologies if I haven't been able to find it...

My website does fairly well in google, yet more and more often the links to my site are formed:

http://domainname/pagename.htm

rather then:

http://www.domainname/pagename.htm

When users click links formatted the former way, they obviously get DNS errors.

Anyone know why this is? As I say I've been noticing it more and more, and have also noticed that google's cache of the pages do not contain images, style sheets etc.

Anyone have an idea what this is about?

s9

lazerzubb

9:00 am on Jul 9, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



>>contain images, style sheets etc.

That is a bit strange, don't know how this is.

I would advise that you do a 301 redirection from all [domain.com...] requestes to [domain.com...] also i would try sending the people who link wronly and asking them to change it to www.domain.com instead, i had the same problems long time ago, and they did it without a problem.

mcavic

2:52 pm on Jul 9, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



When users click links formatted the former way, they obviously get DNS errors.

Why not set up your DNS so that both ways work? Most sites do. Any isn't it odd that people link to a url that doesn't work?

s9_uk

3:19 pm on Jul 9, 2003 (gmt 0)

10+ Year Member



So add a record to my DNS which is not www. but just domain.com - seems a good idea.

I was really wondering if anyone knows why google would be doing this?

mcavic

3:52 pm on Jul 9, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



and have also noticed that google's cache of the pages do not contain images, style sheets etc.

Google doesn't cache images and style sheets - it just caches the html, and it assumes that the rest will still be in place on your server.

Have you moved images, changed your directory structure, etc, a lot lately? If so, the cached page might just be out of date, and linking to images that aren't there anymore.

mcavic

3:57 pm on Jul 9, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I was really wondering if anyone knows why google would be doing this?

Oh, you mean Google is actually listing the non-working URL? Does the listing have an excerpt with it, or is it just a URL? If it's just a URL, that's probably just because people are linking to it, so Google lists it and then tries to visit it later.

But, if you add the DNS and do the 301 redirect, then it should take care of itself.

s9_uk

4:05 pm on Jul 9, 2003 (gmt 0)

10+ Year Member



>>Does the listing have an excerpt with it, or is it just a URL?

It has the excerpt with it and a cached version as well, although the cached page does not include styles, images etc

Do a search for "Used Nortel Telecom" in google and look at the top 2 results. Try clicking their link - how did they get that URL if the page can't be found?

(apologies in advance if I have broken any etiquette here by giving away my website address!)

kstprod

7:01 pm on Jul 9, 2003 (gmt 0)

10+ Year Member



I'm sorry to butt into this thread, but I have a related question.

My site's domain.com and www.domain.com both resolve to the same place, however, on domain.com, my PR is 0. On www.domain.com my PR is 4.

Normally, nobody links to domain.com, I try to be sure of that. However, I now have a couple of valuable backlinks that *ARE* linking to domain.com and don't seem to be counting and would be a nice boost. I can't email them because this is how they set up the entire site, ie. they link to everyone without the www.

As I said, the domain.com works fine, so I'm not sure if a 301 would do me any good. Any ideas of how I could get these nice links to count?

vincevincevince

7:08 pm on Jul 9, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



are you _sure_ that you didn't previously support the domain without the www.?

glengara

7:20 pm on Jul 9, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Kstprod, sounds like you need a 301 from domain.com to www.domain.com.
Links/PR is passed from one to the other.

kstprod

8:28 pm on Jul 9, 2003 (gmt 0)

10+ Year Member



glengara,

Thank you. Do you know what I would add to my htaccess to achieve that? I have seen conflicting ways of doing this. Also, would this be added at the top of the htaccess?

Thanks a billion :)

glengara

8:33 pm on Jul 9, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Kstprod, do a site search, more knowledgeable people have answered this before.

kstprod

9:51 pm on Jul 9, 2003 (gmt 0)

10+ Year Member



Thanks. I have searched through a ton of posts regarding 301's but they either get too confusing with different variables, or someone is trying to redirect a "page" and not the domain.com to www.domain.com. I did find the following from jdMorgan...

RewriteCond %{HTTP_HOST} ^mydomain\.com
RewriteRule ^(.*)$ [mydomain.com...] [R=permanent,L]

Can anyone confirm if this is what I need, for the domain.com/ backlink to be credited to www.domain.com/? It seems to be what I need, but I guess I'm confused because when I go to domain.com, I still get my index page. So that kinda makes me think that some kind of redirect is already in place. I just don't want to make a mistake. ;)

I have also read that G isn't too fond of 301's anymore, but since I'm not really redirecting from anything thats listed, it shouldn't really apply to me, right?

vincevincevince

10:38 pm on Jul 9, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



that looks right