• Twitter
  • Facebook
  • Google+
  • LinkedIn
  • Flickr
  • Vimeo
  • RSS

SEO Drupal Best Practice - Part 1 of 2

In this post I’m going to take a look at some of the modules available to improve your Drupal Search Engine Optimisation .  The aim here is to make a Drupal SEO Checklist for new installations and how to install those modules ; there are plenty more tools as well which I’ll add some links for further reading links for at the bottom.

The Drupal 7 Essential SEO tools

  1. XML Sitemap  [XML Sitemap]  - create an automatic XML site map to submit to search engines.
  2. Metatag [Metatag] - control the meta tags on your Website.
  3. Mollom  [https://www.drupal.org/project/Mollom] - spam protection for comments and more.
  4. Pathauto [https://www.drupal.org/project/pathauto]  - auto create an SEO safe URL.
  5. Path Redirect [https://www.drupal.org/project/path_redirect] - creates proper SEO redirects for URLs
  6. SEO Checklist  [https://www.drupal.org/project/seo_checklist]  -  create a to-do list of modules and task that are needed to be done for  the best Drupal SEO practices.
  7. SEO Compliance Checker - [https://www.drupal.org/project/seo_checker] - The module performs a set of checks and gives feedback on compliance rules. 

Phew! Done, right, let's start installing them. 

1. Sitemap XML 

Grab Sitemap XML then once unpacked it includes these modules:

  • XML sitemap
  • XML Sitemap custom
  • XML sitemap engines
  • XML sitemap menuCome
  • XML sitemap node
  • XML sitemap taxonomy
  • XML sitemap  user
  • XML Sitemap Internationalization
  1. Enable all of these modules.
  2. From here to add to the sitemap - Drupal 7 xml sitemap inclusion change to do this you need to Go to the menu items for example ; click on ‘edit menu’ and add to xml site map.

    And for Content  > for Structure > Content > YOUR CONTENT > edit >   In the bottom box the last tab should be ‘XML sitemap'

    Installing Drupal Sitemap XML module - first screen
    Installing Drupal Sitemap XML module - second screen

  3. Add the other links you want to followed and spidered for our XML Sitemap
  4. The site map will be created on the next CRON .  Or you can run a manual one from 

2. Meta Tag Module 

After grabbing Drupal 7 Metatag Module and unpacking it, you should find it comes with these modules: 

  • Metatag
  • Metatag: Context
  • Metatag: Facebook
  • Metatag: Google
  • Metatag: Twitter Cards
  • Metatag: Views
  • Metatag: Devel
  • Metatag: OpenGraph

After Enabling for example if you want to change Frontpage text go to .

> Condiguration > Search and Metadat > Metatg . > Under 'Global' > 'Global: Front Page' - use Override

How to add a Metadata default for pages like portfolio or blog 

  1. Go to admin/config/search/metatags
  2. Click on ‘Add a Metatag default’
  3. Select your category from the drop down box.

    Configuring the meta tag module - screen one
  4. Add your data

    Configuring the meta tag module - screen two

  5. SAVE

    Configuring the meta tag module - screen three

Note: if you have found that Drupal Metatag Module has missed something and there are pages you need to target then you could add a metatag to your header programmatically if needed. 

Take a look at this code as an example.   

$path_alias = drupal_get_path_alias();

if ($path_alias == 'blog'){
  $meta_head_blog = array(
    '#type' => 'markup',
    '#markup' => '<meta name="title" content="Drupal website and app development blog - flowmoco"><meta name="description" content="For the latest posts about web development using Drupal that we use for our enterprise projects, check out our flowmoco blog for news and views.">',
  drupal_add_html_head($meta_head_blog, 'metaHeadBlog');

3. Mollom

After grabbing this Spam Protection Module you need to do the following:

  1. Sign up for a Mollom account on their website at https://www.mollom.com/
  2. Add the form you want to protect in Mollom>configuration  .  > admin/config/content/mollom
  3. Click on 'Add Form'   

    Configuring the Mollom plugin

...and relax. That's the first part done, get ready for part two, coming next week. 


Please login using your credentials recived by email when you register.

I forgot my password | Resend activation e-mail