Comprehensive SEO Tutorial: Optimize your Drupal 6 site to be indexed well by search engines

After primarily working with Drupal 5, I wanted to update my SEO skills for Drupal 6 and went through a bunch of tutorials to sum up all the steps and modules required to make a Drupal 6 site ready to be found by all major search engines.

  1. The one main requirement is to enable clean URLs. That option can be found at admin/settings/clean-urls
  2. Secondly, install and configure Pathauto and Token. Pathauto automatically creates nice-looking paths when creating nodes. Token isn't necessarily required, but a nice addition to use variables in your paths.
    Once you've configured Pathauto and are satisfied with how your URLs end up looking, configure Pathauto so URLs don't change if you decide to change the title of a node in the future. You can find that settings under /admin/build/path/pathauto under General Settings / Update Action.
  3. Next, download and configure the Meta Tag module. This module allows you to configure global and node-specific description and tags. The Meta Tag module is actually called nodewords.
    Note: I'm using FCKEditor 6.x-1.3-rc3 and nodewords 6.x-1.0-rc1, which don't play well together when creating a new node. My fix / workaround was to disable FCKEditor on the "New Story" page completely and open it in a popup.
  4. Then, install the Global Redirect Module. This module makes sure that trailing slashed at the end of URLs are removed. More importantly, it fixes the problem that your URLs are accessible via your URL alias and the node/xxxnumber structure. In general, having duplicate content can decrease your search engine ranking.
  5. Install the Page Title module. This module allows you to manually set the page titles of nodes. In the eyes of a search engine, page titles represent one of the more relevant characteristics and will increase your search engine ranking.
  6. Modify your .htaccess file to always redirect to www.yourdomain.com, even if visitors come to yourdomain.com. You can find the rewrite-rules in the .htaccess file, you just need to modify them with your domain name and uncomment them.
  7. Optimize Drupal's robots.txt file. This file defines the rules about what folders of your site can be accessed by search engines. Here's a great tutorial with several modification suggestions: http://tips.webdesign10.com/robots-txt-and-drupal. Once you're done, upload your robots.txt file and verify that it's structured correctly with this Robots.txt Validator.
  8. Finally, make sure your theme is XHTML compatible. Make sure your DOCTYPE declaration is suitable for your needs. I decided to make my danielhanold.com compatible with XHTML 1.0 Transitional, as the Strict declaration doesn't allow to set the "_target" attribute. You can test the validity of your document at the W3 Validation Tool.

There are quite some steps involved to get your content indexed well by search engines. However, if you spend all this time creating great content, I think it's worth the time optimizing your site to be "indexed" the best it can.

Comments

it's a great tutorial, thank you for sharing.

Just what I was looking for, Thanks

The tutorial is extremely useful, i am just learning the web designg from a leading institute, want success in this field, i think I have landed on a right blog which would help me a lot in demolishing my doubts. You can reach me at ZK@Web Marketing Blog

Heres what we are looking for. Thanks.

Thanks for the source and your Drupal tips.

Good post.I tried to setup a site using Drupal. However, I decided to switch to Joomla . I’ve heard many times that it’s easier to develop in Drupal. That would be a good thing because customizing the Joomla install is a really big pain.
SEO

Good post.I impartial to edifice a niche using Drupal. However, I dogged to stud to Joomla . Ive heard umpteen times that its easier to bob up fix Drupal. That would sell for a just company considering customizing the Joomla base is a largely vast pain. Atlanta Internet Marketing

Thanks for this awesome post. I was looking for this kind of information on SEO.

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
More information about formatting options
CAPTCHA
This question tests whether you are a human visitor and to prevent automated spam submissions.