homepage Welcome to WebmasterWorld Guest from 54.198.130.203
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Subscribe to WebmasterWorld
Home / Forums Index / Google / Google News Archive
Forum Library, Charter, Moderator: open

Google News Archive Forum

    
What is the difference in these links?
How does Google view the following links?
cgallent




msg:112831
 9:12 pm on Aug 27, 2003 (gmt 0)

I've been wrestling with very subtle differences in page links. Let me explain.

To Google what is the difference in these two pieces of code:
<a href="http://www.domain.com">link text</a>
<a href="http://www.domain.com/">link text</a> <--difference is the slash.

What about this link to an internal page:

<a href="products/keyword-phrase.html">keyword phrase</a>
<a href="http://www.domain.com/products/keyword-phrase.html">keyword phrase</a>

From what I can tell page rank is definitely affected in the first example by using the slash.

In the second example, Google seems to count the second link as an inbound link to the page and not within the site.

Any ideas or thoughts. I hope I have explained myself well. If not, let me know and I'll try and explain better.

 

wkitty42




msg:112832
 9:35 pm on Aug 27, 2003 (gmt 0)

To Google what is the difference in these two pieces of code:
<a href="http://www.domain.com">link text</a>
<a href="http://www.domain.com/">link text</a> <--difference is the slash.

the first one will garner a 302 code pointing to the second one...

<a href="products/keyword-phrase.html">keyword phrase</a>
<a href="http://www.domain.com/products/keyword-phrase.html">keyword phrase</a>

the first one doesn't carry any domain reference so it must reside within the current domain... the second, even though it is point to the same domain, appears to be outside the current domain context... the first one is also easier to maintain, FWTW...

cgallent




msg:112833
 10:45 pm on Aug 27, 2003 (gmt 0)

So how do each affect pagerank and/or count as incoming links?

For instance, if google spiders a site and the link to the domain with the slash is in there, would it be considered an incoming link because of the slash?

Same for the second case. If I am internally linking to a page and I want incoming link "credits", would the full URL help?

tictoc




msg:112834
 10:49 pm on Aug 27, 2003 (gmt 0)

the first one will garner a 302 code pointing to the second one...

explain that in english please :)

i think he is asking whether he needs to use a "/" consistently or if the "/" really matters like the www.domian.com vs. domain.com.

jdMorgan




msg:112835
 11:28 pm on Aug 27, 2003 (gmt 0)

Slash, no slash - Do it any way you like, just be consistent. (I will recommend the trailing slash because it saves a server redirect for each request.) Also, note that Google always uses one in the URLs and links in their search results. Good enough for them, good enough for me...

> explain that in english please

A relative link is not going to invoke a 302 redirect. The user-agent will simply resolve it according to the HTTP rules. Either way, it ends up resolving to the canonical URI of the page.

Jim

xlcus




msg:112836
 9:14 am on Aug 28, 2003 (gmt 0)

the first one will garner a 302 code pointing to the second one...

Not always. It depends on how your server has been set up. The two urls (the one with the slash and the one without) could be completely different pages in some cases.

dougmcc1




msg:112837
 2:13 pm on Aug 28, 2003 (gmt 0)


To Google what is the difference in these two pieces of code:
<a href="http://www.domain.com">link text</a>
<a href="http://www.domain.com/">link text</a> <--difference is the slash.

<a href="products/keyword-phrase.html">keyword phrase</a>
<a href="http://www.domain.com/products/keyword-phrase.html">keyword phrase</a>

<a href="http://www.domain.com/"> is a link to the default page in the root directory. <a href="http://www.domain.com"> is a link to the domain. Basically the same thing.

<a href="products/keyword-phrase.html"> is an internal link to a page on your site. <a href="http://www.domain.com/products/keyword-phrase.html"> is more like an external link to a page on your site.

ogletree




msg:112838
 2:20 pm on Aug 28, 2003 (gmt 0)

I have noticed that a lot of sites have a gray bar when you type in a url like www.domain.com/widgets/ but gives PR when you do www.domain.com/widgets.

hazardtomyself




msg:112839
 6:12 pm on Aug 28, 2003 (gmt 0)

So for all the pros out there, if you were building a website from scratch, would you use the www.domain.com/ or the www.domain.com for your link requests? Additionally, would you use virtual page addresses or the complete url address for each page?

ciml




msg:112840
 6:20 pm on Aug 28, 2003 (gmt 0)

<a href="products/keyword-phrase.html">keyword phrase</a>
<a href="http://www.domain.com/products/keyword-phrase.html">keyword phrase</a>

As has been written, these are the same (unless you're already in /something/ in which case you'd need to prepend the / to the first of those).

<a href="http://www.domain.com">link text</a>
<a href="http://www.domain.com/">link text</a> <--difference is the slash.

Nope, those are the same too. [example.com...] is different from [example.com...] but [example.com...] is [example.com...] because there is no ambiguity.

2_much




msg:112841
 6:27 pm on Aug 28, 2003 (gmt 0)

At SES I recall hearing that Google treats those separately. So these are different pages:

www.domain.com
domain.com
www.domain.com/
www.domain.com/index.html

My memory's a bit fuzzy on this one, but my understanding is that Google tries to resolve and consolidate them into one, but once in a while it'll index them differently (I run into this every so often).

So in this case, I think the best advice is to keep them consistent throughout the site.

As to the relative vs absolute question, I've always believed in absolute. Even though it adds a bit of code to the page and makes it a bit heavier, I think the benefits outweight the cons.

coolasafanman




msg:112842
 8:43 pm on Aug 28, 2003 (gmt 0)

trailing slash: technically, yes having it will help avoid 302. However, it seems most people that link up with me will link without the trailing slash, so that's how I do it to avoid PR loss.

relative vs. absolute: with absolute, if someone links to your page using either domain.com, www.domain.com, www.domain.com/index.html or www.domain.com/, all the pages that the index branches off to will fall in the same naming structure and will benefit regardless. I'm all for absolute (except the kind that comes in a bottle, yuck).

lgn




msg:112843
 9:35 pm on Aug 28, 2003 (gmt 0)

I remember in a recent post, googleguy said that
they convert:

www.widget.com/
www.widget.com
www.widget.com/index.html
www.widget.com/index.htm
www.widget.com/default.asp

to

www.widget.com

cgallent




msg:112844
 10:49 pm on Aug 28, 2003 (gmt 0)

Good stuff.

I'm seeing more and more references inside Google search results to the absolute link. It seems to be a better way to "promote" incoming links to a page versus relative links to a page.

I.E. If I have 20 outside links to a page and 20 relative (inside the site) links to a page. I can't seem to validate wether this case equates to 40 incoming links to that page. On the other side if you have the same 20 outside links and 20 absolute links (within the site) to the same page, it looks like Google DOES count that as 40 incoming links to the page.

Any thoughts?

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Google / Google News Archive
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved