0 12 Apr, 2011
In SEO Services Tags:

There is no doubt about that SEO plays the critical role in success and failure of any business on Internet world and it is one of the most influential driving force of Online Business. We decided to pen down some basic but important SEO techniques & facts for programmers so they can help SEO team to secure or retain the top ladder position in Search Engines.

1) Most Important Places on a Page to place keywords

<head>

<title>Keyword</title>

</head>

<h1>Most Important</h1>

<h2>Second Most Important</h2>

<h3>Third Most Important</h3>

<b>Keyword</b>

<strong>Keyword</strong>

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

Hyperlink

(No Followed)

<a href=”http://www.mysite.com/webpage.html” title=”keyword”

rel=”nofollow”>Keyword in Anchor Text</a>

2) Page Indexing Limitations of Search Engines

  • Page File Size: No more than 150 kilobytes (Before Images, CSS and other Attachments)
  • Amount of links: No more than 100 unique links per page
  • Title Tag: No more than 70 characters
  • Meta Description: No more than 155 characters
  • Parameters in URL: No more than 2

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

  • Depth of URL: No more than 4 directories deep
  • Ideal Title Tag Syntax: Keyword < Category | Website Title

3) 301 Redirect Commands to remove canonical URL’s

 

Write to file called ‘.htaccess’. The file is named only as an extension. Hidden files must be viewable in operating system. mod_rewrite must be enabled Command Description

Command

Explanation

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

newpage.html

Redirect single file or directory to a new

file or directory on a different domain

RewriteEngine on

RewriteCond %{HTTP_HOST} ^mysite.com [NC]

RewriteRule (.*) http://www.mysite.com/$1 [L,R=301]

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

Entire site:

Redirect 301 / http://www.newdomain.com/

Redirect permanent /old http://www.newdomain.com/new

Safely redirect entire domain to a new domain

as a 301

4) Important Search Engine Robots:http://www.user-agents.org

5) Robots Meta Tag

ROBOT NAME can be either “robots” for all robots or the user-agent of a specific robot. See robot user-agent list at http://www.user-agents.org

<meta name=”ROBOT NAME” content=”ARGUMENTS” />

Command

Search Engines

Impace

noindex

Google, Yahoo, Live,

Ask

Page Not Indexed

nofollow Google, Yahoo, Live,Ask

Google, Yahoo, Live,

Ask

All Links on Page

Become No Followed

noarchive

Google, Yahoo, Live,

Ask

Page Not Cached

noodp

Google, Yahoo, Live

Stops Description and Title

Tag Overwrite by DMOZ

(Only for Homepage

noydir

Yahoo

Stops Description and

Title Tag Overwrite by

Yahoo Directory

nosnippet

Google

Stops Google from

Generating Description

Based on On-page Text

6) URL Optimization

Basic SEO techniques that every programmer should keep in while they are coding any website.

·Use main keywords in the URL

·Hyphens Separate Best. Avoid underscores. Use ‘/’ to reflect directory level.

·Describe Your Content

·Keep it Short

·Static is the Way & the Light

·Descriptive URLs are Better than Numbers – /brand/adidas/ is better than 114/cat223/

·Avoid creating Subdomans as have the potential to be treated separately from the primary domain when it comes to passing link and trust value

·Fewer Folders – No more than 4 directories deep

·Follow same URL convention through out the website

·Don’t be Case Sensitive. No upper case in the URL.301 lower case URLs to all-lowercase versions to help avoid confusion

Example of BadURLs

Explanation

http://www.target.com/gp/detail.html/602-9912342-3046240?

_encoding=UTF8&frombrowse=1&asin=B000FN0KWA

It doesn’t describe their content, use keywords, or keep it short. That and the horrifyingly useless data that can be removed from the URL without changing the content make this URL downright ugly.

http://etsy.com/view_item.php?listing_id=477443&pic_id=2

It provides no descriptive information, use multiple dynamic parameters and separate breaks with underscores.

Example of GoodURLs

Explanation

http://www.discoverohio.com/visitors/map.asp

it’s short, descriptive, static and obvious.

http://web.mit.edu/is/usability/usability-guidelines.html

Despite the subdomain, everything else is near perfect.

http://www.whitehouse.gov/history/presidents/jk35.html

Good hierarchy and wise use of numbers

7) Sitemap.xml 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>

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

8) Robots.txt –

User-agent: *

Disallow: /folder or file name & location to be disallowed/
Sitemap: http://www.site.com/sitemap.xml

Robots.txt example - 

User-agent: Googlebot/2.1

Disallow: /nogoogle.html

Sitemap: http://www.mysite.com/sitemap.xml

9) Common Bot Traps
·Input Forms
·Session IDs in URL
·Pages Restricted by Cookies
·Frames
·Logins

Related News