A blend of programming and seo

Category — seo

Blogger seo tips

blogger logo Blogger seo tips

The following are tips that can help you increase search-engine traffic to a blogspot/blogger.com blog.

Step 1 – account settings

blogger settings Blogger seo tips

1) Blog Title: Title of your blog, this should be short and to the point.
2) Description: This should include keywords related to your blog topic. Also make sure to write complete sentences.
3) Add your blog to our listings? yes. You can get exposure here because it will be presented in various lists around blogger.com.
4) Allow Blog Feeds: Short. Having a short feed is usually better because it gives people a reason to visit your site to read the rest.
5) Post Feed Redirect URL: Get a feedburner account. This will make it easier for people to subscribe to your RSS feed and you can keep track of the number of subscribers.
6) Show Email Post links: yes

Step 2 – remove the top search bar


This will not only make your site look more professional, but your content will get indexed faster.

Use the following code to remove the top bar:

#navbar {
height:0px;
visibility:hidden;
display:none
}

The HTML from your template can be edited by going to Layout->Edit HTML. The above should be pasted underneath <b:skin><![CDATA[/*

February 27, 2009   3 Comments

Google, Microsoft, and Yahoo announce duplicate content hints

In a recent announcement on the google blog:

“we now support a format that allows you to publicly specify your preferred version of a URL. If your site has identical or vastly similar content that’s accessible through multiple URLs, this format provides you with more control over the URL returned in search results. It also helps to make sure that properties such as link popularity are consolidated to your preferred version”

This new tag, called canonical, can be easily added to any webpage and allows you to specify a preferred version of the current page. The tag should be placed with the <head></head> tags on your page.

<link rel=”canonical” href=”http://www.yoursite.com/content” />

Is rel=”canonical” a hint or a directive?
It’s a hint that we honor strongly. We’ll take your preference into account, in conjunction with other signals, when calculating the most relevant page to display in search results.

Can I use a relative path to specify the canonical, such as <link rel=”canonical” href=”product.php?item=swedish-fish” />?
Yes, relative paths are recognized as expected with the <link> tag. Also, if you include a <base> link in your document, relative paths will resolve according to the base URL.

Is it okay if the canonical is not an exact duplicate of the content?
We allow slight differences, e.g., in the sort order of a table of products. We also recognize that we may crawl the canonical and the duplicate pages at different points in time, so we may occasionally see different versions of your content. All of that is okay with us.

What if the rel=”canonical” returns a 404?
We’ll continue to index your content and use a heuristic to find a canonical, but we recommend that you specify existent URLs as canonicals.

What if the rel=”canonical” hasn’t yet been indexed?
Like all public content on the web, we strive to discover and crawl a designated canonical URL quickly. As soon as we index it, we’ll immediately reconsider the rel=”canonical” hint.

Can rel=”canonical” be a redirect?
Yes, you can specify a URL that redirects as a canonical URL. Google will then process the redirect as usual and try to index it.

What if I have contradictory rel=”canonical” designations?
Our algorithm is lenient: We can follow canonical chains, but we strongly recommend that you update links to point to a single canonical page to ensure optimal canonicalization results.

Can this link tag be used to suggest a canonical URL on a completely different domain?
No. To migrate to a completely different domain, permanent (301) redirects are more appropriate. Google currently will take canonicalization suggestions into account across subdomains (or within a domain), but not across domains. So site owners can suggest www.example.com vs. example.com vs. help.example.com, but not example.com vs. example-widgets.com.

Plugins:

There have already been some plugins created for auto-generating this tag.

Magento canonical plugin – Download here
Drupal canonical extension – Download here
Wordpress canonical plugin – Download here

February 16, 2009   No Comments

5 search engine ranking tips

Although it is difficult to know exactly what Google and other search engines use to determine your search result rankings, the following are five methods that are known to help your site pages get better keyword targeted traffic:

1) Keyword usage in title tag

It is a good idea to use keywords in your page titles.

The actual text you use in the title tag is one of the most important factors in how a search engine may decide to rank your web page. Also, all major web crawlers will use the text of your title tag as the heading in your listings.

example:

<head>


<title>Your page name with keywords</title>
..
</head>

2) Keyword usage in the body of the page

Body text is the text that visitor see on your website.

Don’t overuse keywords in your text. The good rule is to use keywords once or twice in each paragraph of your page. If you are using your keywords too often, search engines might penalize your site and mark you as spam.

The following can’t be crawled by search engines:

  • Text embedded in JavaScript of Flash
  • Text used in image files (jpg, gif, png, bmp) (However, an alternative to this is to use keywords in the alt tags or in the name of the image file)
  • Text that is accessible only on a submit form or other portion of the page that requires some action or interaction with the user

If search engine bots can’t see the text on your website, it won’t be indexed.

3) Age of site

The age of your site is also a factor in your ranking. This is because domains are cheap these days and newer domains are more likely to contain spam or link farms.

4) Popularity of outbound links

It’s not just the types of sites that you link to that counts (which should also be related to your page content). You also need to make sure that you do not link to blacklisted sites (google will many times blacklist your site if you link to too many sites that aready blacklisted.) Once you are on this list, it will be difficult to get back to your previous rank.

pagerank 5 search engine ranking tips

Google pagerank (toolbar can be downloaded for free here) is a way for you to get a basic idea of how popular a website is compared to yours. It’s a good idea to link to pages that have an equal or better pagerank.

5) Anchor text around links (external to your domain and internal)

Relevant anchor text should be used in links. This applies not just to external links pointing into your site, but internal links throughout your site.

Anchor text is the text surrounding a link, for example:

<a href=”www.mydomain.com”>your domain link</a>

The anchor text is “your domain link”

February 12, 2009   No Comments

Improving seo with apache mod_rewrite

What is mod_rewrite?

Mod_rewrite is a rewriting engine (based on regular-expressions) built into the apache webserver and it is used to rewrite urls dynamically. The URL manipulations can depend on various tests, of server variables, environment variables, HTTP headers, or time stamps. Even external database lookups in various formats can be used to achieve highly granular URL matching.

How to install it

Apache by default comes with the mod_rewrite module installed but it is not enabled. So if you have Apache installed on your own server, you will need to enable it.

If you need to install apache on your system, there are many free, easy install packages available:

Xamphttp://www.apachefriends.org/en/xampp.html
apache2triadhttp://apache2triad.net/
apachePHPMysqlhttp://apachephpmysql.narhoz.ru/
EasyWebServerhttp://e.w.s.free.fr/index_fr.php
FoxServhttp://sourceforge.net/projects/foxserv/

Setting it up

Once installed, mod_rewrite basically relies on one file for all it’s functionality. It’s called .htaccess. This file should be placed in the root directory of your website.

A simple Redirect

Place the following in a .htaccess file:

RewriteEngine on
RewriteRule ^test\.html$ test2.html

RewriteEngine on should always be placed at the beginning of all your .htaccess files.

Note: If you are using a hosting provider, you may have to place the following line in your file (under rewrite_engine on): RewriteBase /

Script details:

  • ^ is used before a URL. If a relative URL is used, it starts in the same directory as the .htaccess file
  • $ is used for the end of a string that will be matched.
  • \ is used to escape the period, periods need the \ before them if they are not going to be part of the actual rule (in this case, it is part of the filename).

This script will redirect all access from test.html to test2.html. IE: if a user goes to http://www.yoursite.com/test.html, they will be automatically forwarded to http://www.yoursite.com/test2.html

Improving your website SEO

An easy and simple way to generate more keyword related traffic is the following:

RewriteRule ^keyword_1.htm$ /myscript.php [NC,L]

In this example, all requests to keyword_1.htm are actualling going to myscript.php.

Other interesting uses

A) Blocking a specific Ip addressing from accessing your website.

RewriteCond %{REMOTE_ADDR} ^(W\.X\.Y\.Z)$
RewriteRule ^/* http://www.yoursite.com/sorry.htm [L]

Replace w.x.y.z with the IP you would like to block and http://www.yoursite.com/sorry.htm with the redirected URL.

B) Block/redirect a site that is linking to you

RewriteCond %{HTTP_REFERER} ^http://www\.blockedsite\.com [NC]
RewriteRule ^/* http://www.yoursite.com/sorry.htm [L]

Replace http://www.blockedsite.com/ with site you do not want linking to you, and http://www.yoursite.com/sorry.htm with the redirected URL.

C) preventing people from linking to your images

RewriteCond %{HTTP_REFERER} !^http://(www\.)?yoursite\.com [NC]
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} ^http://.*$
RewriteRule \.(png |gif | bmp | jpe?g|)$ /images/stopstealing.png [L]

Replace http://www.blockedsite.com/ your site, and /images/stopstealing.png with an image path of choice.

February 9, 2009   2 Comments

10 phpBB seo tips

The following are 10 tips that will help you get better search engine placement with PHPbb(available for free here: http://www.phpbb.com/).

1) Remove the “View Latest Post” icon and link on index.php

This is a page rank drain issue. The link is restored but the image is removed because it makes the page too “busy” and because the images are not as attractive as the text link we will subsequently create using the last post date.

2) Make the date of the last post link to the last post like the icon did on index.php

3) Unlink the username of the last post on index.php

As explained above the latest post link is now accessed from thelatestt post date. There are a few reasons for this. First of all a text link is almost always better than an image link. Secondly the text link will change (as the dates change). This makes the link more attractive to search engines but most importantly it provides a slight chance at more keyword traffic by branding the link with a date and time as a keyword.

The links to the profiles are also not the focus of the site. Most users are not searching the internet for information in your users’ profiles. So this helps direct the search engines to the content on the topics instead of the many other links search engines could follow.
4) Remove listing of moderators on index.php

This is a MOD by John Abela. It removes the listing of moderators on the index page. This helps make the page less “busy” and also helps direct the spiders toward the content and not the profiles. It reduces the index page’s queries by 2, so it also helps improve forum speed a bit.

5) Remove session IDs for all search engine spiders

This is a crucial part of this mod. It is based on code that was posted by a user named Darlantan but it is unclear who wrote the original snippet.

This code removsessionion IDs for all guests. This means ALL spiders can spider your forum without session IDs in the URLs.

NOTE: This means you can’t enable guest posting to your forums. It won’t hamper guests in any way other than disallowing them to post. phpBB recently improved security with their session IDs so this code strikes a perfect balance between session ID integrity and search engine spidering.

6) Unlink the username of the last post on viewforum.php

This is purely for page rank drain and to direct the search engine spiders to the content. Pages with too many links are penalized by some search engialgorithmsyms. The links to the profiles are also not the focus of the site. Most users are not searching the internet for information in your users’ profiles. So this helps direct the search engines to the content on the topics instead of the many other links search engines could follow.
7) Remove the “View Latest Post” icon and link on viewforum.php

This is a page rank drain issue. The link is restored but the image is removed because it makes the page too “busy” and because the images are not as attractive as the text link we will subsequently create using the last post date.

8) Make the date of the last post link to the last post like the icon did on viewforum.php

As explained above the latest post link is now accessed from thelatestt post date. There are a few reasons for this. First of all a text link is almost always better than an image link. Secondly the text link will change (as the dates change). This makes the link more attractive to search engines but most importantly it provides a slight chance at more keyword traffic by branding the link with a date and time as a keyword.

9) Unlink the author username on viewforum.php

This is purely for page rank drain and to direct the search engine spiders to the content. Pages with too many links are penalized by some search enginalgorithmsms. The links to the profiles are also not the focus of the site. Most users are not searching the internet for information in your users’ profiles. So this helps direct the search engines to the content on the topics instead of the many other links search engines could follow.

10) Remove signatures for guest views

This modification removes repetitive text from the topic pages. As signatures are text that is not usually relevant to the topic they distract search engines dilutelute the key words. This makes the signatuinvisibleible for guests so that search engines (and guests!) focus on the content of the topic. it also helps if you allow users to put links in their signatures as you will not lose any page rank through these links anymore.

February 3, 2009   1 Comment