100% found this document useful (1 vote)
206 views2 pages

SEO Web Developer Cheat Sheet

The document provides an SEO cheat sheet covering important topics for web developers such as recommended HTML tags and title syntax, limits for things like URL parameters and link depth, how to set up 301 redirects, common canonical issues to address, important search engine robots and how to use robots.txt files, and sitemap best practices. It offers technical details and specific code examples for setting up SEO best practices across a website. The cheat sheet is intended as a concise reference guide for web developers to optimize a site for search engines.

Uploaded by

DukeURL
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
206 views2 pages

SEO Web Developer Cheat Sheet

The document provides an SEO cheat sheet covering important topics for web developers such as recommended HTML tags and title syntax, limits for things like URL parameters and link depth, how to set up 301 redirects, common canonical issues to address, important search engine robots and how to use robots.txt files, and sitemap best practices. It offers technical details and specific code examples for setting up SEO best practices across a website. The cheat sheet is intended as a concise reference guide for web developers to optimize a site for search engines.

Uploaded by

DukeURL
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

The Web Developers SEO Cheat Sheet

Revision 09 Important SEO HTML tags


<head> <title>Keyword</title> </head> <h1>Most Important</h1> <h2>Second Most Important</h2> <h3>Third Most Important</h3>

Search Engine Indexing Limits


*Does not apply to websites with signicant authority

Page File Size No more than 150 kilobytes (Before Images, CSS and other Attachments) Amount of links Title Tag Meta Description
No more than 100 unique links per page No more than 70 characters No more than 155 characters Bad Example: http://www.mysite.com/brands.php? object=1&type=2&kind=3&node=5&arg=6 Good Example: http://www.mysite.com/brands.php?nike Bad Example: http://www.mysite.com/people/places/things/ noun/danny/car *Best Practice Good Example: http://www.mysite.com/people/danny/

Title Tag

H1,H2,H3

Bold, Strong <b>Keyword</b> (Same Worth) <strong>Keyword</strong> Image (XHTML) Hyperlink


<img src=keyword.jpg alt=keyword /> <a href=http://www.mysite.com/webpage.html title=keyword>Keyword in Anchor Text</a>

Parameters in No more than 2 URL

Depth of URL No more than 4

Hyperlink <a href=http://www.mysite.com/webpage.html title=keyword (No Followed) rel=nofollow>Keyword in Anchor Text</a>

Recommended Title Tag Syntax


Keyword < Category | Website Title

301 Redirect for Apache


Write to le called .htaccess. The le is named only as an extension. Hidden les must be viewable in operating system. mod_rewrite must be enabled

Command

Description
Redirect single le or directory to a new le or directory on a different domain

Common Canonical Homepage Issue


Bad

http://www.mysite.com http://mysite.com http://www.mysite.com/index.html http://mysite.com/index.html http://www.mysite.com/

Redirect 301 /oldpage.html http://www.newdomain.com/ newpage.html

Good

RewriteEngine on RewriteCond %{HTTP_HOST} ^mysite\.com [NC] RewriteRule (.*) http://www.mysite.com/$1 [L,R=301] Entire site: Redirect 301 / http://www.newdomain.com/ Redirect permanent /old http://www.newdomain.com/new

Redirect http://mysite.com to http:// www.mysite.com. Affects entire domain.

To condense the four default homepages into one homepage, use 301 redirects (See table on right) to correct for erroneous incoming links and make all internal links point to your domain using the syntax http://www.mysite.com/. Always include trailing / on folders.

Redirect entire domain to a new domain as either a 301 (recommended) or 302

The Web Developers SEO Cheat Sheet


Important Search Engine Robots
Last updated April 29th 2008. Check http://www.user-agents.org/ for updates

Robots Meta Tag


<meta name=ROBOT NAME content=ARGUMENTS />

Google Search Google Search Google Image Search Google Image Search MSN Search MSN Search MSN Media Search Robot Windows Live Product Search Microsoft Search for Mobiles Alexa / The Internet Archive Alexa / The Internet Archive Alexa / The Internet Archive Yahoo Blog Search Yahoo Multimedia Search Yahoo Product Search Yahoo Product Search Yahoo Product Search Ask/Teoma Search Ask/Teoma Search Ask/Teoma Search

Googlebot/2.1 ( http://www.google.com/bot.html) Googlebot/2.1 ( http://www.googlebot.com/bot.html) Googlebot-Image/1.0 Googlebot-Image/1.0 ( http://www.googlebot.com/bot.html) msnbot/x.xx ( http://search.msn.com/msnbot.htm) MSNBOT/0.xx (http://search.msn.com/msnbot.htm) msnbot-media/1.0 (+http://search.msn.com/msnbot.htm) msnbot-Products/1.0 (+http://search.msn.com/msnbot.htm) MSNBOT_Mobile MSMOBOT Mozilla/2.0 (compatible; MSIE 4.02; Windows CE; Default) ia_archiver ia_archiver-web.archive.org ia_archiver/1.6
Yahoo-Blogs/v3.9 (compatible; Mozilla 4.0; MSIE 5.5; http://help.yahoo.com/help/us/ysearch/crawling/ crawling-02.html )

ROBOT NAME can be either robots for all robots or the user-agent of a specic robot. See robot user-agent list to the left.

Arguments
noindex nofollow noarchive noodp Google, Yahoo, Live, Ask Google, Yahoo, Live, Ask Google, Yahoo, Live, Ask Google,Yahoo, Live Page Not Indexed All Links on Page Become No Followed Page Not Cached
Stops Description and Title Tag Overwrite by DMOZ (Only for Homepage)

noydir

Yahoo

Stops Description and Title Tag Overwrite by Yahoo Directory Stops Google from Generating Description Based on On-page Text

nosnippet

Google

Yahoo-MMAudVid/1.0 (mms dash mmaudvidcrawler dash support at yahoo dash inc dot com)
YahooSeeker/1.0 (compatible; Mozilla 4.0; MSIE 5.5; http://help.yahoo.com/help/us/shop/merchant/) YahooSeeker/1.0 (compatible; Mozilla 4.0; MSIE 5.5; http://search.yahoo.com/yahooseeker.html) YahooSeeker/1.1 (compatible; Mozilla 4.0; MSIE 5.5; http://help.yahoo.com/help/us/shop/merchant/)

Sitemap Syntax
<?xml version=1.0 encoding=UTF-8?> <urlset xmlns=http://www.sitemaps.org/schemas/sitemap/0.9> <url> <loc>http://www.mysite.com/</loc> <lastmod>1987-05-25</lastmod> <changefreq>monthly</changefreq> <priority>0.8</priority> </url> </urlset>

Mozilla/2.0 (compatible; Ask Jeeves) Mozilla/2.0 (compatible; Ask Jeeves/Teoma)


Mozilla/2.0 (compatible; Ask Jeeves/Teoma; http://about.ask.com/en/docs/about/webmasters.shtml)

Common Robot Traps


Input Forms Session IDs in URL Pages Restricted by Cookies Frames Logins

Robots.txt Syntax
User-agent: * Disallow: /privatefolder/ Disallow: /privatele.html User-agent: Googlebot/2.1 Disallow: /nogoogle.html Sitemap: http://www.mysite.com/sitemap.xml

Default Locations Search Engines Look for Sitemaps


http://www.mysite.com/sitemap.xml http://www.mysite.com/sitemap.xml.gz http://www.mysite.com/sitemap.gz
Visit http://www.xml-sitemaps.com/ for a free sitemap

You might also like