Thursday, July 2, 2009

Dynamic vs. Static URL’s

Dynamic websites have the advantage of using only a handful of files to generate thousands of pages. They do this through the variables passed onto the server in the URL string. For example, a server’s software receives a request for the following URL: “http://www.yourblog.com/?p=123” The software then uses the template file and the variable “?p=123” to search the database for the information. Once the system has it, the page is sent to the user.

Larger search engines such as Google, MSN, and Yahoo can index URL’s that include a limited number of variables (from 1 to 3). However, smaller search engines do not index them at all. So keep it simple and rewrite your URL to make it easier for all spiders. No engine, large or small, has any issue indexing static-looking, directory-based URL’s.

In addition, it is virtually impossible to layer content to maximize visibility in the search engines with dynamic URLs as the seach engine simply will not be able to identify the site structure. A content layer is a logical level of organization within your directory structure.
The tool to rewrite a URL string depends on the platform you host your site on. The two most common servers are Apache and IIS. For an Apache server, the Module ‘MOD_rewrite’ comes standard (although it may not have been installed). For IIS, the ISAPI filter functions identically to the MOD_Rewrite module.

The Mod Rewrite module is implemented in Word Press, and if you go to Options and then Permalinks in your blog, you come to a page called Customize Permalink Structure. It is highly recommended that you use something else than the Default option.

The new custom structure will depend a lot on the way you have organized your blog in the first place, but in any case, %postname% must absolutely be in there. Whether you choose to add date or post ID or other parameters must be based on the current blog structure.

You can read more about the different parameters for permalinks on WordPress’ own site.

Canonical redirects – 301, 302 and Page Hijacking
The problem in a nutshell is that the search engines see http://yourblog.com and http://www.yourblog.com as two different sites. Both “sites” will normally be crawled, indexed and ranked in the search engine, and this results in the following — the search engine identifies the site as two different sites as duplicate sites — which is never a good thing.

Another problem that also occurs is that some sites will link to your http://yourblog.com while others will link to http://www.yourblog.com. As these are treated as separate sites, they will each receive different link popularity as well as different Google Page Rank. Unless you do something about this problem, you basically get your link popularity diluted because of this technicality.

You are also exposing your site for a phenomenon that’s referred to as 302 hijacking. A page hijack is basically a technique exploiting the way the search engines certain commands that a web server can send to a visitor. In essence, it allows a hijacking website to replace pages belonging to target websites in the Search Engine Results Pages.

The solution thankfully is fairly simple: Adding a 301 redirect from http:// yourblog.com to http://www.yourblog.com. The 301 redirect means permanently moved, and the result is that the non www version of the domain will pass on all ranking power to the www version of your site, thus increasing Google Page Rank and chances of ranking well in the search engines.

The same problems occur if you can access either of these in the root of your site:

http://www.yourblog.com/index.html
http://www.yourblog.com/index.php
http://www.yourblog.com/index.asp
http://www.yourblog.com/index.jsp
http://www.yourblog.com/index.cfm
…et cetera
If your site use a folder based navigation structure, be advised that you may run into the same problems as with the above. http://www.yourblog.com/products/ (with and without trailing slash) and http://www.yourblog.com/products/index.php are regarded as two different pages with duplicate content in the eyes of a search engine.

There is very little information as to which format the search engines prefer, however, there are certain indications that they follow the Keep It Simple principle, and that you should in other words strive to present the shortest possible URL.

So my recommendation is to 301 redirect the http://www.yourblog.com/products/index.php as well as http://www.yourblog.com/products (no trailing slash) to http://www.yourblog.com/products/

As a final note, choosing the correct type of redirects can make or break your search engine ranking, and when dealing with canonical redirects, always use 301 permanent moved redirect and not a 302 temporarily moved.

Here’s another really nifty plugin. If you by any chance decide to move the content of one of your posts or pages to another location, there’s a 301 Re direct plugin for that too, and it’s called Angsuman’s Permanent Redirect and it permanently redirects posts and pages that contains “redirect” custom field, to the value of the “redirect” custom field.

Category Naming Convention
Be descriptive with naming Categories. Don’t get carried away, but make sure at least one keyword or keyword phrase appears in the Category name in the format /descriptive-keywords/ This is not an area to stuff keywords.

Categories should be named appropriately as part of the overall theme and should be relevant to the directory content.

Image Naming Conventions
Instead of naming your file image01134.jpg, you would ideally name it keyword-phrase.jpg or image-name.jpg. Many sites have poor, even non-existent Alt tags, so a focus should be to make those Alt tags as efficient as possible, using at least one keyword relevant for the page and page category. Also, remember to use dash, not underscore in your image names. This is quite important from a SEO perspective.

Many computer programming languages have variables or constants such as _MAXINT, which may be different than MAXINT. So if you have an image like word1_word2.jpg, Google will only return that page if the user searches for word1_word2 — which of course almost never happens. If you have an image like word1-word2.jpg, that image can be returned for the searches word1, word2, and even “word1 word2?.

Title Tag
The title tag is the single most important on-page element for ranking well in a search engine. Rule of thumb is to put the Title tag immediately after the Head tag, and it is said that certain search engines does not count it if it’s after other Meta Tags. Many web sites and blogs have a Title tag naming convention like this: [Company Name] – [Page Title].

While this is certainly much better than not having any title tag (did you know that there are over 25 Million pages in Google with the Title “untitled document”?), switching things around to [Page Title] - [Company Name] is a much better approach as you get the keyword rich Page Title first.

Unless your company is a very well known brand, page title should always come first. The reason is that the searcher is looking for a product, service or information, not your company. And when you give prominence to the Page Title rather than your company name, you will rank better.

The way to do this in Word Press is to use a plug-in called Optimal Title. This simply switches the Blog title and the Post title around so that you get it right.

Heading Tags
The heading tag is the second most important on-page element for ranking well in a search engine, however all too often do I see pages with not one single Hx tag. Or it’s used incorrectly. The H tag is primarily to be used to structure a document, not to style text. It’s clearly defined by W3C how to use it — both in the HTML/XHTML specs, but also in WACAG and other guidelines.

The search engines don’t care about the pretty colours or the cool fonts, only the document structure and will rank the page based on that. Follow the W3C specifications, use the H tags to construct proper page hierarchy and the search engines will love you for it.

Normally your Post title will be a H1, but if you write long posts, I highly suggest using H2 and possibly H3 as well for sub headings instead of just bold text.

And while on the subject of styling fonts — use external style sheets and put all your styling in there. Do not use inline text styling. It makes your page faster, and it gives the search engine much less code to go through, thus making it easier for the spider.

H1 is the main heading, and thus you should only have one occurrence of the tag per page. A page should always be focused on a over all theme, and you can use these headings to cluster them around this overall theme.

Ideally you use the H tag alone without a class, but some times you need a different look or colour of the same H, and that’s when you use classes. Thankfully, most Word Press themes are coded very well, so this won’t be a problem for most. In most cases, I would also highly recommend that your Title tag and your H1 tag is identical, or that they contain the same key phrase or semantically matching theme. This also seem to be the standard for most Word Press Themes

Lists
Lists are a great way to display key features of a product or service. On the web, the visitors tend to scan content instead of reading, Putting key features inside a list makes it easier for a visitor to do so — and the search engines put emphasis on text inside a list. Lists can also be used for creating great looking menus with dropdown or hover effects as a replacement on JavaScript menus, but more about that later.

Page Text
Without moving into the copywriter’s domain, there are a few aspects to page text from a designer’s perspective. Yet again, follow W3C Guidelines. Proper use of P tags instead of BR for paragraphs, strong instead of b, em instead of i and so on.

Anchor Text
“Click here”. How often is that key phrase relevant for the content of your page? Not very often. However, a search in Google on that phrase gives you a absolutely mind-blowing 2.5 billion results. Now that’s what I call a waste of search engine marketing power. Link text should be concise and descriptive, using topic relevant keywords and phrases. A hot tips here is to use anchor text that makes sense when read out of context.

There are ways to get the best from both usability, accessibility and SEO via CSS, and is something that’s being used here at SEO Bomb.

Meta Tags
Unfortunately, none of the common Meta tags comes as default in Word Press and you need extra plug-ins for this. Below are the plug-ins for Meta Keywords and Meta Description respectively:

Jerome’s Keywords: Adds a keyword field below the post text field
Head Meta: Let you use Custom field as Meta Description
Some search engines will index the META Description Tag found in the section of your web pages. Google is one of them, and if the META Description is written correctly, with a maximum of 156 characters including space, it will display your description instead of snippets from the page content provided that the description contain the term or phrase being searched for.

Normally, you would only write a description based on primary target key word- or phrase, but I have successfully managed to write up to three different descriptions and have the search engine display the appropriate description depending on which key word is being used in the search engine query.

Yahoo & MSN does also use the META Description, but I find them both, and MSN in particular, a bit tricky from time to time. Another thing I’d like to mention when it comes to MSN is that they some times seem to prefer the description from DMOZ, so if you do have a DMOZ listing, you may find yourself in some trouble if you haven’t paid much attention when authoring your description.

META Keywords
The META Keywords Tag is where you list keywords and keyword phrases that you’ve targeted for that specific page. There have been numerous discussions surrounding the use of the keywords tag and its effectiveness. The overall consensus is that the tag has little relevance with the major search engines, but it may help the search engine to determine the overall theme of your website.

Google Blog Search
While on the subject of Titles and Meta descriptions, Google Blog Search seems to have a slightly different take on the Description they display. While Google normally display up to 156 charachters from potentially the Meta Description fields, Google Blog seach is fetching info from your RSS or XML feeds, and display up to 240 charachters in the description.

That means that your Optional Excerps should not be more than 240 charachters to be displayed as a whole:

Listing includes
Title: 66 charachters – Does not include Blog Name
Description: 240 characters including space (Optional Excerpt in Word Press)
Date
Author

Normal search
On normal keyword and phrase search, Description is displayed

Advanced search
On advanced search, it does not display the Description, but rather the first 240 following characters.

RSS and Syndication Your Content
I could nix this section directly from SEO Blackhat but I’m not gonna. Their article about RSS and syndicating news is excellent, so check it out. I also highly recommend looking at their Ping list - which happens to be the same list as I use on this blog.

I must point out that my custom made syndication buttons are way sexier than theirs — and you can use them all you want if you promise to link to this site. But anyway, here we go:

Step 1: Download my custom syndication buttons: black or white and put them in your images folder

Step 2: Add the HTML for your chosen buttons according to SEO Blackhat’s directions

Preventing Blog Spam - Akismet
Not that this has anything directly to do with making your website search engine friendly, but one of the drawbacks of lots of traffic to your site is the increase of blog spam. That is what you have the Akismet anti blog spam plugin for.

Akismet checks your comments against the Akismet web serivce to see if they look like spam or not. You need a WordPress.com API key to use this service. You can review the spam it catches under “Manage” and it automatically deletes old spam after 15 days. Just do yourself a favour and install it. It’ll make your life so much easier.

And there you have it — the ultimate guide for making your blog rank in search engines. Of course I have a few more tricks up my sleeve if you’re really serious about blogging, but that’s for clients only. If you like it, link to it, if you have comments or questions, leave a comment!

No comments:

Post a Comment