SlideShare uma empresa Scribd logo
1 de 57
Baixar para ler offline
Search-Friendly Web Development @ Lone Star Ruby Conference 2010
Search Engines
comScore July 2010 Rankings




                              Google   AOL
 65.8%             2.3%       Bing     Ask
                              Yahoo
                    11.0%

                    3.8%

               17.1%
Why?
“SEO Expert”
== “Spammer”
“I literally can’t stand the advertising/
marketing/SEO people. They’re
making money where there is none,
simply because they’re immoral f&@$
who are capable of badgering people
just to make a little ching. They’re
paying overseas workers crap wages
to do technical work that is immoral if
not illegal, and they do it simply to
make money.”
“I'm not an SEO expert, but [it]
seems like SEO is something spam
sites do. If you are trying to create a
high quality destination site, just
write good content and let Google
do its job.”

- Sachin Agarwal, CEO Posterous
“Let FastCGI do its job”.
On average, 40% of
traffic comes from
organic search*
Search-Friendly Web Development @ Lone Star Ruby Conference 2010
Search-Friendly Web Development @ Lone Star Ruby Conference 2010
Search-Friendly Web Development @ Lone Star Ruby Conference 2010
Search-Friendly Web Development @ Lone Star Ruby Conference 2010
Search-Friendly Web Development @ Lone Star Ruby Conference 2010
Search-Friendly Web Development @ Lone Star Ruby Conference 2010
Search-Friendly Web Development @ Lone Star Ruby Conference 2010
“Not my audience!”
luigimontanez.com
“Experts” Not Needed
Professional Practices
• User-Centric Design
• Test-Driven Development
• DRY and Maintainable Code
• Server Performance
• Client-Side Performance
• Search Engine Considerations
Six Simple Rules
• Can’t outsmart Google (or Bing or Y!)
• Follow Google’s advice
• Obey conventions and standards
• Stay away from hacks
• Think like a search engine
• Think like a searcher
Search Engine Pipeline
• Crawling
• Indexing
• Ranking
<crawling>
Discovery
• Links to your pages from other sites
• Links to your pages from within your site
• Your sitemap.xml
sitemap.xml
• Tell search engines exactly what you
 want them to crawl
• sitemaps.org
• Limit: 50,000 URLs, 10MB
• Can specify multiple sitemaps with a
 sitemap index
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/
schemas/sitemap/0.9">
   <url>
      <loc>http://example.com/about</loc>
      <lastmod>2010-01-01</lastmod>
      <changefreq>monthly</changefreq>
      <priority>0.8</priority>
   </url>
</urlset>
Generating sitemap.xml
• Write it by hand, stick it in public/
• Build a controller, action, and route
 entry to respond to ‘sitemap.xml’. Use
 XML Builder to generate the entries.
 Cache it.
• Importantly: Strive for 100% coverage.
robots.txt
• Exclusion rather than inclusion
• robotstxt.org



User-agent: *
Disallow: /profile
Be nice to the crawler
• Be performant. Fast server response.
 Fast page load. Compress files. Use if-
 modified-since header.
• Non-www vs. www - pick one.

• Ensure unique content. Use <link
 rel=”canonical”/> where
 approriate.
</crawling>
<indexing>
Don’t sabotage it
• Don’t use a 302 redirect when you
 mean a 301 redirect.
• Make sure images, video, Flash,
 Silverlight, and AJAX are accessible.
• See the Google Webmaster Central
 Blog for details.
• Don’t change content based on region.
• Don’t require cookies to view content.
</indexing>
<ranking>
<title>
• Most important element to search
 engines
• Think long and hard about it
• Keywords! Think like a searcher.
• Best format: Page Title | Site Name

• ProTip: Append &pws=0 for testing in
 Google
Search-Friendly Web Development @ Lone Star Ruby Conference 2010
Search-Friendly Web Development @ Lone Star Ruby Conference 2010
Search-Friendly Web Development @ Lone Star Ruby Conference 2010
URLs
• Override to_param for pretty URLs.

• Dashes are word separators,
 underscores are not. Use dashes.
• International domains are treated as
 such.
<meta>
• <meta name=”description”
  content=”...” />
• Make it unique for every page. Use
  content_for.
• Shown to users, doesn’t affect ranking.

• <meta name=”tags” ... /> is
 ignored
Headings and Content
• <h> tags should be used appropriately.

• Page content should match what the
 <title> and <h> tags refer to.
• Avoid text-indent:-9999px and
 display:none in CSS.
</ranking>
Tools
• Google Webmaster Tools
• Bing Webmaster Tools
• Yahoo! Site Explorer
Search-Friendly Web Development @ Lone Star Ruby Conference 2010
Search-Friendly Web Development @ Lone Star Ruby Conference 2010
Search-Friendly Web Development @ Lone Star Ruby Conference 2010
Search-Friendly Web Development @ Lone Star Ruby Conference 2010
Search-Friendly Web Development @ Lone Star Ruby Conference 2010
Search-Friendly Web Development @ Lone Star Ruby Conference 2010
Search-Friendly Web Development @ Lone Star Ruby Conference 2010
Search-Friendly Web Development @ Lone Star Ruby Conference 2010
Search-Friendly Web Development @ Lone Star Ruby Conference 2010
Search-Friendly Web Development @ Lone Star Ruby Conference 2010
Search-Friendly Web Development @ Lone Star Ruby Conference 2010
Search-Friendly Web Development @ Lone Star Ruby Conference 2010
Three Takeaways
• Think like a searcher

• Optimize your <title>s

• Use Google Webmaster Tools
Search-Friendly Web Development @ Lone Star Ruby Conference 2010

Mais conteúdo relacionado

Mais procurados

Introduction to SEO and SEO for WordPress
Introduction to SEO and SEO for WordPressIntroduction to SEO and SEO for WordPress
Introduction to SEO and SEO for WordPressChris Burgess
 
Seo 2013
Seo 2013 Seo 2013
Seo 2013 jpmagee
 
Technical SEO - An Introduction to Core Aspects of Technical SEO Best-Practise
Technical SEO - An Introduction to Core Aspects of Technical SEO Best-PractiseTechnical SEO - An Introduction to Core Aspects of Technical SEO Best-Practise
Technical SEO - An Introduction to Core Aspects of Technical SEO Best-PractiseErudite
 
How to Optimise your website with SEO - Simple SEO guide updated for 2014
How to Optimise your website with SEO - Simple SEO guide updated for 2014How to Optimise your website with SEO - Simple SEO guide updated for 2014
How to Optimise your website with SEO - Simple SEO guide updated for 2014Louis Slabbert
 
SEOIT 2017 - Technical SEO is (not) dead
SEOIT 2017 - Technical SEO is (not) deadSEOIT 2017 - Technical SEO is (not) dead
SEOIT 2017 - Technical SEO is (not) deadNenad Pantelić
 
SEO for developers (session 1)
SEO for developers (session 1)SEO for developers (session 1)
SEO for developers (session 1)RankAbove
 
Technical SEO Best Practices
Technical SEO Best PracticesTechnical SEO Best Practices
Technical SEO Best PracticesNishanth Stephen
 
Top 10 Technical SEO Mistakes (that we see time and again)...
Top 10 Technical SEO Mistakes (that we see time and again)...Top 10 Technical SEO Mistakes (that we see time and again)...
Top 10 Technical SEO Mistakes (that we see time and again)...Erudite
 
Website Analysis Report - Website Designing Proposal
Website Analysis Report - Website Designing ProposalWebsite Analysis Report - Website Designing Proposal
Website Analysis Report - Website Designing ProposalSuraj Singh
 
Advanced Technical SEO - Index Bloat & Discovery: from Facets to Javascript F...
Advanced Technical SEO - Index Bloat & Discovery: from Facets to Javascript F...Advanced Technical SEO - Index Bloat & Discovery: from Facets to Javascript F...
Advanced Technical SEO - Index Bloat & Discovery: from Facets to Javascript F...Kahena Digital Marketing
 
Demand quest seo training session 2 5.2018
Demand quest seo training session 2 5.2018Demand quest seo training session 2 5.2018
Demand quest seo training session 2 5.2018Nate Plaunt
 
Successful SEO: Where Robots Meet Humans
Successful SEO: Where Robots Meet HumansSuccessful SEO: Where Robots Meet Humans
Successful SEO: Where Robots Meet HumansHobsons
 
SEO Workshop : "Does Google love or hate your website"
SEO Workshop : "Does Google love or hate your website"SEO Workshop : "Does Google love or hate your website"
SEO Workshop : "Does Google love or hate your website"Sylvie de Meeûs
 
Paid Traffic with WordPress PPC Hacks - by Peter Mead for BigDigital 2016
Paid Traffic with WordPress PPC Hacks - by Peter Mead for BigDigital 2016Paid Traffic with WordPress PPC Hacks - by Peter Mead for BigDigital 2016
Paid Traffic with WordPress PPC Hacks - by Peter Mead for BigDigital 2016Peter Mead
 
SMX East - SEO Tools Panel
SMX East - SEO Tools PanelSMX East - SEO Tools Panel
SMX East - SEO Tools PanelAbby Hamilton
 
The State of the Web: Pagination and Infinite Scroll
The State of the Web: Pagination and Infinite ScrollThe State of the Web: Pagination and Infinite Scroll
The State of the Web: Pagination and Infinite ScrollAdam Gent
 

Mais procurados (20)

Introduction to SEO and SEO for WordPress
Introduction to SEO and SEO for WordPressIntroduction to SEO and SEO for WordPress
Introduction to SEO and SEO for WordPress
 
Seo 2013
Seo 2013 Seo 2013
Seo 2013
 
Black Hat SEO
Black Hat SEOBlack Hat SEO
Black Hat SEO
 
Black Hat Seo
Black Hat SeoBlack Hat Seo
Black Hat Seo
 
SEO - Hazem Torab
SEO - Hazem TorabSEO - Hazem Torab
SEO - Hazem Torab
 
Technical SEO - An Introduction to Core Aspects of Technical SEO Best-Practise
Technical SEO - An Introduction to Core Aspects of Technical SEO Best-PractiseTechnical SEO - An Introduction to Core Aspects of Technical SEO Best-Practise
Technical SEO - An Introduction to Core Aspects of Technical SEO Best-Practise
 
How to Optimise your website with SEO - Simple SEO guide updated for 2014
How to Optimise your website with SEO - Simple SEO guide updated for 2014How to Optimise your website with SEO - Simple SEO guide updated for 2014
How to Optimise your website with SEO - Simple SEO guide updated for 2014
 
SEOIT 2017 - Technical SEO is (not) dead
SEOIT 2017 - Technical SEO is (not) deadSEOIT 2017 - Technical SEO is (not) dead
SEOIT 2017 - Technical SEO is (not) dead
 
Seo training
Seo trainingSeo training
Seo training
 
SEO for developers (session 1)
SEO for developers (session 1)SEO for developers (session 1)
SEO for developers (session 1)
 
Technical SEO Best Practices
Technical SEO Best PracticesTechnical SEO Best Practices
Technical SEO Best Practices
 
Top 10 Technical SEO Mistakes (that we see time and again)...
Top 10 Technical SEO Mistakes (that we see time and again)...Top 10 Technical SEO Mistakes (that we see time and again)...
Top 10 Technical SEO Mistakes (that we see time and again)...
 
Website Analysis Report - Website Designing Proposal
Website Analysis Report - Website Designing ProposalWebsite Analysis Report - Website Designing Proposal
Website Analysis Report - Website Designing Proposal
 
Advanced Technical SEO - Index Bloat & Discovery: from Facets to Javascript F...
Advanced Technical SEO - Index Bloat & Discovery: from Facets to Javascript F...Advanced Technical SEO - Index Bloat & Discovery: from Facets to Javascript F...
Advanced Technical SEO - Index Bloat & Discovery: from Facets to Javascript F...
 
Demand quest seo training session 2 5.2018
Demand quest seo training session 2 5.2018Demand quest seo training session 2 5.2018
Demand quest seo training session 2 5.2018
 
Successful SEO: Where Robots Meet Humans
Successful SEO: Where Robots Meet HumansSuccessful SEO: Where Robots Meet Humans
Successful SEO: Where Robots Meet Humans
 
SEO Workshop : "Does Google love or hate your website"
SEO Workshop : "Does Google love or hate your website"SEO Workshop : "Does Google love or hate your website"
SEO Workshop : "Does Google love or hate your website"
 
Paid Traffic with WordPress PPC Hacks - by Peter Mead for BigDigital 2016
Paid Traffic with WordPress PPC Hacks - by Peter Mead for BigDigital 2016Paid Traffic with WordPress PPC Hacks - by Peter Mead for BigDigital 2016
Paid Traffic with WordPress PPC Hacks - by Peter Mead for BigDigital 2016
 
SMX East - SEO Tools Panel
SMX East - SEO Tools PanelSMX East - SEO Tools Panel
SMX East - SEO Tools Panel
 
The State of the Web: Pagination and Infinite Scroll
The State of the Web: Pagination and Infinite ScrollThe State of the Web: Pagination and Infinite Scroll
The State of the Web: Pagination and Infinite Scroll
 

Destaque

Open Government Data and MongoDB
Open Government Data and MongoDBOpen Government Data and MongoDB
Open Government Data and MongoDBLuigi Montanez
 
Communities of Authority
Communities of AuthorityCommunities of Authority
Communities of AuthorityAaron Cope
 
Resultados twitter Curling Nevada Barcelona 5
Resultados twitter Curling Nevada Barcelona 5Resultados twitter Curling Nevada Barcelona 5
Resultados twitter Curling Nevada Barcelona 5Selva Orejón
 
CIC网论观察2006-2010精选2:2.0时代下的品牌危机
CIC网论观察2006-2010精选2:2.0时代下的品牌危机CIC网论观察2006-2010精选2:2.0时代下的品牌危机
CIC网论观察2006-2010精选2:2.0时代下的品牌危机Kantar Media CIC
 
Civic Hacking @ Strange Loop 2010
Civic Hacking @ Strange Loop 2010Civic Hacking @ Strange Loop 2010
Civic Hacking @ Strange Loop 2010Luigi Montanez
 
Sunlight Labs & MongoDB @ MongoDC
Sunlight Labs & MongoDB @ MongoDCSunlight Labs & MongoDB @ MongoDC
Sunlight Labs & MongoDB @ MongoDCLuigi Montanez
 

Destaque (6)

Open Government Data and MongoDB
Open Government Data and MongoDBOpen Government Data and MongoDB
Open Government Data and MongoDB
 
Communities of Authority
Communities of AuthorityCommunities of Authority
Communities of Authority
 
Resultados twitter Curling Nevada Barcelona 5
Resultados twitter Curling Nevada Barcelona 5Resultados twitter Curling Nevada Barcelona 5
Resultados twitter Curling Nevada Barcelona 5
 
CIC网论观察2006-2010精选2:2.0时代下的品牌危机
CIC网论观察2006-2010精选2:2.0时代下的品牌危机CIC网论观察2006-2010精选2:2.0时代下的品牌危机
CIC网论观察2006-2010精选2:2.0时代下的品牌危机
 
Civic Hacking @ Strange Loop 2010
Civic Hacking @ Strange Loop 2010Civic Hacking @ Strange Loop 2010
Civic Hacking @ Strange Loop 2010
 
Sunlight Labs & MongoDB @ MongoDC
Sunlight Labs & MongoDB @ MongoDCSunlight Labs & MongoDB @ MongoDC
Sunlight Labs & MongoDB @ MongoDC
 

Semelhante a Search-Friendly Web Development @ Lone Star Ruby Conference 2010

Demand Quest SEO Training Sept. 2017 - Session 1
Demand Quest SEO Training Sept. 2017 - Session 1Demand Quest SEO Training Sept. 2017 - Session 1
Demand Quest SEO Training Sept. 2017 - Session 1Nate Plaunt
 
SEO for Beginners Feb 2020 - Bristol Media
SEO for Beginners Feb 2020  - Bristol MediaSEO for Beginners Feb 2020  - Bristol Media
SEO for Beginners Feb 2020 - Bristol MediaJon Payne
 
Search Engine Optimization - What's it about?
Search Engine Optimization -  What's it about?Search Engine Optimization -  What's it about?
Search Engine Optimization - What's it about?Vũ Lê
 
Demand quest seo training
Demand quest seo trainingDemand quest seo training
Demand quest seo trainingNate Plaunt
 
SEO 101: How to Get Started Winning Google Search Traffic
SEO 101: How to Get Started Winning Google Search TrafficSEO 101: How to Get Started Winning Google Search Traffic
SEO 101: How to Get Started Winning Google Search TrafficBernard Huang
 
The Best Guide to SEO
The Best Guide to SEOThe Best Guide to SEO
The Best Guide to SEOSumeet Chadha
 
Search Engine Optimization (SEO)
Search Engine Optimization (SEO)Search Engine Optimization (SEO)
Search Engine Optimization (SEO)Christopher Mbinda
 
Introduction to SEO in 2022
Introduction to SEO in 2022Introduction to SEO in 2022
Introduction to SEO in 2022Ash Nallawalla
 
SEO for Ecommerce: A Comprehensive Guide
SEO for Ecommerce: A Comprehensive GuideSEO for Ecommerce: A Comprehensive Guide
SEO for Ecommerce: A Comprehensive GuideAdam Audette
 
Getting found - Search Engine Optimizaton
Getting found - Search Engine OptimizatonGetting found - Search Engine Optimizaton
Getting found - Search Engine Optimizatonnetc2012
 
Search Engine Optimization in 2016
Search Engine Optimization in 2016Search Engine Optimization in 2016
Search Engine Optimization in 2016Brad Smith
 
SEO Seminar for Small Businesses in NYC
SEO Seminar for Small Businesses in NYCSEO Seminar for Small Businesses in NYC
SEO Seminar for Small Businesses in NYCJoe Apfelbaum
 
SEO Training Course Online, Learn SEO, SEO for Beginners, Complete SEO Tutorial
SEO Training Course Online, Learn SEO, SEO for Beginners, Complete SEO TutorialSEO Training Course Online, Learn SEO, SEO for Beginners, Complete SEO Tutorial
SEO Training Course Online, Learn SEO, SEO for Beginners, Complete SEO TutorialDeep Mehta
 
Optimizing Your Website for Search Engines
Optimizing Your Website for Search EnginesOptimizing Your Website for Search Engines
Optimizing Your Website for Search EnginesTony Sattler
 
SEO Predictions for 2013 & Beyond
SEO Predictions for 2013 & Beyond SEO Predictions for 2013 & Beyond
SEO Predictions for 2013 & Beyond sbedrick
 
Advanced SEO Technoiques-2014
Advanced SEO Technoiques-2014Advanced SEO Technoiques-2014
Advanced SEO Technoiques-2014VIJAYAKRISHNAN K
 

Semelhante a Search-Friendly Web Development @ Lone Star Ruby Conference 2010 (20)

Demand Quest SEO Training Sept. 2017 - Session 1
Demand Quest SEO Training Sept. 2017 - Session 1Demand Quest SEO Training Sept. 2017 - Session 1
Demand Quest SEO Training Sept. 2017 - Session 1
 
SEO for Beginners Feb 2020 - Bristol Media
SEO for Beginners Feb 2020  - Bristol MediaSEO for Beginners Feb 2020  - Bristol Media
SEO for Beginners Feb 2020 - Bristol Media
 
Search Engine Optimization - What's it about?
Search Engine Optimization -  What's it about?Search Engine Optimization -  What's it about?
Search Engine Optimization - What's it about?
 
Demand quest seo training
Demand quest seo trainingDemand quest seo training
Demand quest seo training
 
SEO Training Slides October 2016
SEO Training Slides October 2016SEO Training Slides October 2016
SEO Training Slides October 2016
 
SEO 101: How to Get Started Winning Google Search Traffic
SEO 101: How to Get Started Winning Google Search TrafficSEO 101: How to Get Started Winning Google Search Traffic
SEO 101: How to Get Started Winning Google Search Traffic
 
Technial SEO
Technial SEOTechnial SEO
Technial SEO
 
The Best Guide to SEO
The Best Guide to SEOThe Best Guide to SEO
The Best Guide to SEO
 
Search engine optimization
Search engine optimizationSearch engine optimization
Search engine optimization
 
Search Engine Optimization (SEO)
Search Engine Optimization (SEO)Search Engine Optimization (SEO)
Search Engine Optimization (SEO)
 
Introduction to SEO in 2022
Introduction to SEO in 2022Introduction to SEO in 2022
Introduction to SEO in 2022
 
SEO for Ecommerce: A Comprehensive Guide
SEO for Ecommerce: A Comprehensive GuideSEO for Ecommerce: A Comprehensive Guide
SEO for Ecommerce: A Comprehensive Guide
 
Getting found - Search Engine Optimizaton
Getting found - Search Engine OptimizatonGetting found - Search Engine Optimizaton
Getting found - Search Engine Optimizaton
 
Search Engine Optimization in 2016
Search Engine Optimization in 2016Search Engine Optimization in 2016
Search Engine Optimization in 2016
 
SEO Seminar for Small Businesses in NYC
SEO Seminar for Small Businesses in NYCSEO Seminar for Small Businesses in NYC
SEO Seminar for Small Businesses in NYC
 
SEO Basics - Introduction to Search Engine Optimization for SEO beginner, Web...
SEO Basics - Introduction to Search Engine Optimization for SEO beginner, Web...SEO Basics - Introduction to Search Engine Optimization for SEO beginner, Web...
SEO Basics - Introduction to Search Engine Optimization for SEO beginner, Web...
 
SEO Training Course Online, Learn SEO, SEO for Beginners, Complete SEO Tutorial
SEO Training Course Online, Learn SEO, SEO for Beginners, Complete SEO TutorialSEO Training Course Online, Learn SEO, SEO for Beginners, Complete SEO Tutorial
SEO Training Course Online, Learn SEO, SEO for Beginners, Complete SEO Tutorial
 
Optimizing Your Website for Search Engines
Optimizing Your Website for Search EnginesOptimizing Your Website for Search Engines
Optimizing Your Website for Search Engines
 
SEO Predictions for 2013 & Beyond
SEO Predictions for 2013 & Beyond SEO Predictions for 2013 & Beyond
SEO Predictions for 2013 & Beyond
 
Advanced SEO Technoiques-2014
Advanced SEO Technoiques-2014Advanced SEO Technoiques-2014
Advanced SEO Technoiques-2014
 

Mais de Luigi Montanez

Civic Hacking @ Strange Loop 2010
Civic Hacking @ Strange Loop 2010Civic Hacking @ Strange Loop 2010
Civic Hacking @ Strange Loop 2010Luigi Montanez
 
Civic Coding @ SunnyConf
Civic Coding @ SunnyConfCivic Coding @ SunnyConf
Civic Coding @ SunnyConfLuigi Montanez
 
Civic Hacking @ Ruby Midwest 2010
Civic Hacking @ Ruby Midwest 2010Civic Hacking @ Ruby Midwest 2010
Civic Hacking @ Ruby Midwest 2010Luigi Montanez
 
Civic Hacking @ Ignite RailsConf
Civic Hacking @ Ignite RailsConfCivic Hacking @ Ignite RailsConf
Civic Hacking @ Ignite RailsConfLuigi Montanez
 
Civic Hacking @ MongoNYC
Civic Hacking @ MongoNYCCivic Hacking @ MongoNYC
Civic Hacking @ MongoNYCLuigi Montanez
 
Civic Hacking @ LA RubyConf 2010
Civic Hacking @ LA RubyConf 2010Civic Hacking @ LA RubyConf 2010
Civic Hacking @ LA RubyConf 2010Luigi Montanez
 
Civic Hacking @ Ruby Hoedown
Civic Hacking @ Ruby HoedownCivic Hacking @ Ruby Hoedown
Civic Hacking @ Ruby HoedownLuigi Montanez
 
Be A Civic Coder - DCRUG
Be A Civic Coder - DCRUGBe A Civic Coder - DCRUG
Be A Civic Coder - DCRUGLuigi Montanez
 

Mais de Luigi Montanez (10)

Civic Hacking @ Strange Loop 2010
Civic Hacking @ Strange Loop 2010Civic Hacking @ Strange Loop 2010
Civic Hacking @ Strange Loop 2010
 
Civic Coding @ SunnyConf
Civic Coding @ SunnyConfCivic Coding @ SunnyConf
Civic Coding @ SunnyConf
 
Civic Hacking @ Ruby Midwest 2010
Civic Hacking @ Ruby Midwest 2010Civic Hacking @ Ruby Midwest 2010
Civic Hacking @ Ruby Midwest 2010
 
Civic Hacking @ Ignite RailsConf
Civic Hacking @ Ignite RailsConfCivic Hacking @ Ignite RailsConf
Civic Hacking @ Ignite RailsConf
 
Civic Hacking @ MongoNYC
Civic Hacking @ MongoNYCCivic Hacking @ MongoNYC
Civic Hacking @ MongoNYC
 
Civic Hacking @ LA RubyConf 2010
Civic Hacking @ LA RubyConf 2010Civic Hacking @ LA RubyConf 2010
Civic Hacking @ LA RubyConf 2010
 
Civic Hacking @ Ruby Hoedown
Civic Hacking @ Ruby HoedownCivic Hacking @ Ruby Hoedown
Civic Hacking @ Ruby Hoedown
 
Be A Civic Coder - DCRUG
Be A Civic Coder - DCRUGBe A Civic Coder - DCRUG
Be A Civic Coder - DCRUG
 
Be A Civic Coder
Be A Civic CoderBe A Civic Coder
Be A Civic Coder
 
Thin
ThinThin
Thin
 

Search-Friendly Web Development @ Lone Star Ruby Conference 2010

  • 2. Search Engines comScore July 2010 Rankings Google AOL 65.8% 2.3% Bing Ask Yahoo 11.0% 3.8% 17.1%
  • 6. “I literally can’t stand the advertising/ marketing/SEO people. They’re making money where there is none, simply because they’re immoral f&@$ who are capable of badgering people just to make a little ching. They’re paying overseas workers crap wages to do technical work that is immoral if not illegal, and they do it simply to make money.”
  • 7. “I'm not an SEO expert, but [it] seems like SEO is something spam sites do. If you are trying to create a high quality destination site, just write good content and let Google do its job.” - Sachin Agarwal, CEO Posterous
  • 8. “Let FastCGI do its job”.
  • 9. On average, 40% of traffic comes from organic search*
  • 20. Professional Practices • User-Centric Design • Test-Driven Development • DRY and Maintainable Code • Server Performance • Client-Side Performance • Search Engine Considerations
  • 21. Six Simple Rules • Can’t outsmart Google (or Bing or Y!) • Follow Google’s advice • Obey conventions and standards • Stay away from hacks • Think like a search engine • Think like a searcher
  • 22. Search Engine Pipeline • Crawling • Indexing • Ranking
  • 24. Discovery • Links to your pages from other sites • Links to your pages from within your site • Your sitemap.xml
  • 25. sitemap.xml • Tell search engines exactly what you want them to crawl • sitemaps.org • Limit: 50,000 URLs, 10MB • Can specify multiple sitemaps with a sitemap index
  • 26. <?xml version="1.0" encoding="UTF-8"?> <urlset xmlns="http://www.sitemaps.org/ schemas/sitemap/0.9">    <url>       <loc>http://example.com/about</loc>       <lastmod>2010-01-01</lastmod>       <changefreq>monthly</changefreq>       <priority>0.8</priority>    </url> </urlset>
  • 27. Generating sitemap.xml • Write it by hand, stick it in public/ • Build a controller, action, and route entry to respond to ‘sitemap.xml’. Use XML Builder to generate the entries. Cache it. • Importantly: Strive for 100% coverage.
  • 28. robots.txt • Exclusion rather than inclusion • robotstxt.org User-agent: * Disallow: /profile
  • 29. Be nice to the crawler • Be performant. Fast server response. Fast page load. Compress files. Use if- modified-since header. • Non-www vs. www - pick one. • Ensure unique content. Use <link rel=”canonical”/> where approriate.
  • 32. Don’t sabotage it • Don’t use a 302 redirect when you mean a 301 redirect. • Make sure images, video, Flash, Silverlight, and AJAX are accessible. • See the Google Webmaster Central Blog for details. • Don’t change content based on region. • Don’t require cookies to view content.
  • 35. <title> • Most important element to search engines • Think long and hard about it • Keywords! Think like a searcher. • Best format: Page Title | Site Name • ProTip: Append &pws=0 for testing in Google
  • 39. URLs • Override to_param for pretty URLs. • Dashes are word separators, underscores are not. Use dashes. • International domains are treated as such.
  • 40. <meta> • <meta name=”description” content=”...” /> • Make it unique for every page. Use content_for. • Shown to users, doesn’t affect ranking. • <meta name=”tags” ... /> is ignored
  • 41. Headings and Content • <h> tags should be used appropriately. • Page content should match what the <title> and <h> tags refer to. • Avoid text-indent:-9999px and display:none in CSS.
  • 43. Tools • Google Webmaster Tools • Bing Webmaster Tools • Yahoo! Site Explorer
  • 56. Three Takeaways • Think like a searcher • Optimize your <title>s • Use Google Webmaster Tools