Wednesday, October 13, 2010

SEO Tips for Drupal

Many of Content Management System (CMS) software generate the dynamic page when user made a request. This dynamic page usually has question mark ("?") at the end of its file name. Drupal also has this characteristic, for the example http://drupalsitesample.com/?q=node/3. For a better Search Engine Optimization (SEO), it will be worthwhile to read the statement from Google's webmaster guidelines which stated that the static page is crawled better by the search engine than the dynamic page.

If you decide to use dynamic pages (i.e., the URL contains a "?" character), be aware that not every search engine spider crawls dynamic pages as well as static pages. It helps to keep the parameters short and the number of them few. 

Clean URLs

Drupal has a feature called Clean URLs. That feature will eliminate the ?q= in the URL. So, without ?q= the URL will become http://drupalsitesample.com/node/3. That URL is more like a static page URL which is said can be crawled better by the search engine. Before you can use this feature, make sure your Apache mod_rewrite module is enabled. To enable to Clean URLs feature, you can open menu Administer - Site configurations - Clean URLs. After that, you have to choose the Enabled option then click Save configuration. Drupal Clean URLs
 
URL Aliases

We can also rename Drupal URLs by enabling the Path module. This module is already bundled with Drupal. By using URL Aliases feature, we can rename the URL like http://drupalsitesample.com/node/3 to a more readable URL like http://drupalsitesample.com/drupal-seo-tips. This kind of URL will be searchable via Google with inurl: prefix. To enable the Path module, you can open menu Administer - Site building - Modules and give checkmark on Pathauto checkbox. After that, click the Save configuration button. Enabling Path Module After the Path module is enabled, you can rename the URL of your content by filling the URL path settings field when you creating or editting content. Rename URL
Pathauto Module
 
Renaming URL manually can be a tiring job. But, there is a module that can help you to automatically generate URL aliases. That module name is Pathauto and can be downloaded from http://drupal.org/project/pathauto. Before downloading Pathauto, remember to download Token module from http://drupal.org/project/token because Pathauto requires Token.
To enable to Pathauto module, you can open menu Administer - Site building - Modules. Give check on Token and Pathauto modules. After that, click the Save configuration button.
After the Pathauto module is enabled, it will automatically generate the URL alias for your content when you creating new content. For your older content which haven't aliased before, you can edit them and give a check on Automatic alias checkbox on the URL path settings form.

Automatic alias

The default pattern for the generated URL alias is content/[title-raw]. The [title-raw] will be generated from your content title. So, if your content title is Welcome to my website, Pathauto will generate the URL alias such as content/welcome-to-my-website. You can change this pattern with this following steps.

  1. Click menu Administer - Site building - URL aliases then click Automated alias settings tab.
  2. Click Node path settings. You can change the pattern by modifying the content in this field.

    Automated alias settings
  3. To see the complete Replacement patterns, you can click on Replacement patterns.
  4. For the example, I modify the Default path pattern into content/[yyyy]/[mm]/[dd]/[title-raw].
  5. Click Save configuration when you ready.
  6. So, if I create a content titled My New Content on 1-February-2010, the aliased URL will be content/2010/02/01/my-new-content.


 

2 comments:

  1. These links are discovered by the module using different conditions like category SEO consulting Pakistan terms of a node and suggestions offered by the search module.

    ReplyDelete

  2. Hello,

    we provide affordable and result-oriented SEO services, please give a chance to serve you.


    Thanks
    Admin: E07.net

    ReplyDelete