What is meta? ×
Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 131 Stack Exchange communities.

We've been out of private beta for only two days, and stackoverflow.com is already ranking high in Google Search.

Are there any specific techinques applied in the site? I've been researching the subject for some time and haven't found it to be so easy

Searching 'stackoverflow' even returns site-links.

(Another example search)

share|improve this question

migrated from stackoverflow.com Aug 12 '09 at 18:17

This question came from our site for professional and enthusiast programmers.

    
Your second search does not provide any results for me with Stackoverflow. Perhaps your search was personalised or localised for you by Google. –  Liam Nov 4 '08 at 16:57

20 Answers 20

up vote 28 down vote accepted

Disclaimer: I find this a very interesting topic, so I've scanned through every single answer, and now I want to summarize here what I've just learned and group all good links in one place.

And make no mistake, Search Engine Optimization today is all about Google, even while people want to avoid saying it (just count words for "Yahoo" or anything else there).

Content is King

"The Golden Rule of SEO: Content is King" is the first thing to consider. It's quite simple: have good content. That's the primary reason Stack Overflow has a chance to rank at Google, simply because of how page ranking works.

Websites that have no optimization or guidelines concerns whatsoever but got nice stuff have a great chance of ranking high, because there will be people linking to good content. And most sites trying to do SEO without content won't rank well because nobody will link to them.

With that been said, Stack Overflow does a lot of work from a long time ago to keep clean HTML code...

Clean code have its value

One good example is how rel='canonical' is applied in here to keep search engines away from linking to duplicate content. For instance, let's get this page source:

<link rel="canonical" href="http://meta.stackexchange.com/questions/14056/seo-in-stackoverflow"> 

That is an optimization that will not help to directly rank in the search engine, but it will make the results the engine can find much more relevant and through that it might generate more links (from people who found what they were looking for) to the good content it already have, thus actually indirectly improving its rank.

So clean and optimized HTML does work in conjunction with good content...

But content comes first.

share|improve this answer
2  
Nicely explained, +1 –  Chankey Pathak Oct 26 '10 at 16:21
1  
Also see meta.stackexchange.com/a/84701/159916 –  Pacerier Mar 9 at 14:29

SEO people say "Content is King" - SO is all about the content, which grows and changes by the minute. This is also something that ranks high with Google, and as Daok points out, having lots of high profile sites linking to it, Google rates it highly.

share|improve this answer
6  
Google has indexed 500,000 pages of stackoverflow.com in under 6 weeks! That's a lot of content! It would have slowed down if it did not find that the content was useful to Google's users, e.g. they search for something in Google, click on an SO result, and don't go back to Google for some time. –  Liam Nov 4 '08 at 17:09

The single most important factor in a site's ranking on Google is how many sites link to it. Stack Overflow is being discussed relatively heavily in the tech-press and blogs, quickly giving it a high ranking.

share|improve this answer
    
Let's not forget the beta-period as well. –  tovare Sep 17 '08 at 18:51
2  
the site was cloaked to google in the beta period –  jmfsg Sep 17 '08 at 18:53
    
It might be so, but not really so much anymore. Google takes measures to remove sites that artificially grew that number up, so it's really irrelevant to say this is an important factor. Although it might be important to realize good content in itself won't spread out without some attempt to broadcast it... –  Cawas Nov 12 at 13:56

Content is King

See: The Golden Rule of SEO: Content is King

Stack Overflow already has a lot of great content. Also, incredible niche topics. See Long tail (Wikpedia).

share|improve this answer

Having an XML sitemap (which this site does) helps immensely, because it helps the Googlebot find dynamically generated content much more quickly than it would otherwise. You can see stackoverflow's sitemap here: http://stackoverflow.com/sitemap.xml but be prepared as it is a huge file.

RSS feeds also help a bit, as Google pulls them as part of the blog search engine. I recommend all sites with content that updates regularly have RSS feeds, even if you are not even close to being a blog.

share|improve this answer
    
I've created one at xml-sitemaps.com –  Junior Mayhé Feb 15 '10 at 16:58

One thing I noticed right away that's supposed to be good SEO is putting the question name in the URL. You can get to the question using just the question number (for example, this post can be accessed at http://stackoverflow.com/questions/86268/) but the default URL has the post name in it.

share|improve this answer
    
This can also lead to duplicate content if not handled correctly –  Joe Philllips May 1 '09 at 18:14
    
@d03boy but the problem on the duplicate is well handled already: meta.stackexchange.com/questions/6193/… –  Cawas Mar 12 '10 at 18:17

I don't think Jeff is doing anything magical here to make this happen. It's just good site design and popularity:

  1. Tons of (original) text content.
  2. Lots of internal linking + sitemaps make it easy to crawl.
  3. Prominently placed header tags with question titles.
  4. Tagging for extra keyword-relevance goodness.
  5. Question titles in url string.
  6. Lots of external links (from other sites to stackoverflow)

Overall, the site is just well designed for SEO.

share|improve this answer
    
I see this very page has no meta tags for specifying html keywords?! –  Junior Mayhé Feb 15 '10 at 16:55
    
@Junior - search engines pretty much ignore the meta keywords tag. It is so frequently abused that it doesn't even make sense for search engines to look at it any more. Pretty much the same for the description tag as well. –  Eric Petroelje Feb 18 '10 at 17:58

See The Importance of Sitemaps.

share|improve this answer
    
That question deals with what percentage of Stack Overflow's traffic comes from Google. Which I remember hearing about on the podcast, to paraphase, "a lot". –  James McMahon May 1 '09 at 17:42
1  
the second "here" is now broken! :( –  Cawas Mar 12 '10 at 18:18

In one of the blog posts, Jeff mentioned about The Importance of Sitemaps

share|improve this answer

Google TechTalks recently hosted a presentation by Joel Spolsky where he talks about stuff like this. Worth watching: Learning from StackOverflow.com

[Edit - Watch the whole thing but the question is addressed in the video starting at 23:45.]

share|improve this answer
    
Thanks Robert, that looks interesting. –  James McMahon May 1 '09 at 17:53

Stack Overflow has a growing community and more and more people talk and write about it. All those links and users bring importance to Google (and the PageRank of Google).

share|improve this answer
    
SO page rank is currently 6. –  Jakub Šturc Sep 17 '08 at 18:48
    
Since PageRank values are only calculated every 3 months, the PageRank 6 is probably from when the site was in private beta, or even pre-private beta. –  Chris Upchurch Sep 17 '08 at 18:51
    
But the site was cloaked to google then –  jmfsg Sep 17 '08 at 18:52
    
@juan manuel, it's not 2 days, the beta-period with lots of users was a lot longer. –  tovare Sep 17 '08 at 18:52
    
The front page of the site wasn't Google cloaked then. Same with blog.stackoverflow.com. The only part that wasn't googleable was beta.stackoverflow.com. –  Chris Upchurch Sep 17 '08 at 18:55
    
2 days? You can have maximum 200 reputations by day... how can a lot of person are over 1 000 if it's 2 days... I think you miss the boat of the launch of SO ;) –  Daok Sep 17 '08 at 19:00
    
He's referring to the private beta. Most of the site wasn't accessible to Google until last Monday. –  Chris Upchurch Sep 17 '08 at 19:02

See Jeff Atwood's post on his blog, The Importance of Sitemaps. I also noticed that Stack Overflow questions are usually indexed by Google within an hour. Try googling for the title of a recent question.

share|improve this answer
    
Nice, I must have skipped that particular Jeff post, as it basically answer my question! –  Jorge Córdoba Feb 4 '09 at 0:34

Content is king.

Most companies employ "blackhat" SEO. Gaming the system. Employ "whitehat" SEO. Make a great site, make content that people want, design it so they can access it well, and good rankings will come naturally.

See High Accessibility Is Effective Search Engine Optimization (published 2005-11-08).

share|improve this answer

Sitemaps helps, but the reality is that Google ranks sites both by how frequently they update as well as the value of the content (PageRank).

Sites with high pagerank that update frequently (such as CNN, and this site) get crawled more frequently, and in some cases continuously.

Site maps makes that process even faster/easier for Google, and so that content goes up that much more quickly.

share|improve this answer

While Jeff A. says he doesn't do 'SEO optimization', stackoverflow does follow about every search engine recommendation, and there has clearly been some effort to make the content indexable. For example, every page has a reasonable title and URL. Typical web frameworks will create urls like /question/12345. On SO, they create URLs like Digg. They also use the rel='canonical' link to keep search engines from created duplicate content.

share|improve this answer
    
I think this is very relevant stuff! Thanks brian! –  Cawas Mar 12 '10 at 18:33
    
Yes Always Quality Content & links matters in SEO. –  Deepak Rajput Apr 16 at 7:24

This is very, very anecdotal; however, usually when I search for something programming related that is easily expressed or is very basic question, Stack Overflow is on the first page if not in the first three links.

share|improve this answer

Quite often I do not go to Google first anymore, but rather to Stack Overflow. If there's nothing or not enough relevant stuff here, then I go to Google.

If there's not much on Google, I might ask here and continue searching Google while waiting for hints. It seems to be working well for me most of the time.

share|improve this answer
    
I still go to google, to search Stackoverflow. searchterm site:stackoverflow.com, on google.. works better than SO's sql full text search. –  Simucal Feb 4 '09 at 1:10

I'm supposing that the site was submitted for indexing at the very least, but I'm sure that with the traffic SO is getting, Google incorporates that data into its algorithms.

Just thinking about how many people probably have some Google related piece of software on their system, I'm sure it gathers some sort of (hopefully!) anonymous data about sites visited to bump a popular site up on the indexing ladder.

share|improve this answer

I'm not sure that those examples demonstrate that Stack Overflow has questions actually being ranked high by Google yet. The first search is directly for Stack Overflow, which naturally ranks it high. The second is for a particular misspelling of database: "Dabtabase" which happpens to appear on a Stack Overflow page.

share|improve this answer
    
well, stackoverflow is a word that's very very old, I'd assume at least wikipedia would rank higher (because (I repeat) we've been open for 2 days only) –  jmfsg Sep 17 '08 at 18:50
    
Well, the front page, which is what comes up, has been around for longer than 2 days. My guess is it has shot up in the rankings lately though. –  Chris Upchurch Sep 17 '08 at 18:52

SO marks most outbound links rel=nofollow. This would inflate the sites ranking according to PageRank (assuming out links marked nofollow count as not having an out link at all), if Google made no compensating adjustment to it (say, 90% of out links are rel=nofollow, which most quality sites don't do, hence..)

share|improve this answer

You must log in to answer this question.

protected by Tim Post Feb 2 at 13:56

Thank you for your interest in this question. Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged .