Nov 10 2008

SEO for Drupal

I am using Drupal for over 3+ years now (I had started with v4.6, now v7.0 is in production) and undoubtedly drupal is one of the most powerful open source CMS in the world. Its been used by some of the biggest sites in the world (MTV, Sony, Amnesty etc) and to me is one of the most search engine friendly CMS if you think of its power and flexibility. The only problem with drupal is, its not built solely for SEO and not by search engine specialist (they are all crazy programmers) hence though it can be tweaked into a super SEO friendly site, you need to know everything about it.

I have Never seen any SEO guide on drupal specially for latest version 5.x and 6.x so I felt to write one myself. This is my pay back to such amazing people who are working day and night to build drupal. If you have subsequent questions you can ask them in comments.

Here the Complete Guide to Do SEO for Drupal.

Basic SEO for Drupal

1. Make sure You enable clearn urls and install pathauto module. This is the first step in making your drupal site search engine friendly. Also make sure you get the path settings right for all the content types. By default, Drupal create urls like /content/this-is-page but you can change it to suit your site more, say /review/nike-shoes etc

2. Use Global Redirect module to avoid all kind of content duplication. Since by detault a page can be accessed with two urls /node/317 and /content/this-is-url , this causes lot of duplication and confuses search engines. Global redirect avoid all such problems by 301 redirecting /node/xxx types of urls to their corresponding urls.

3. Use Meta Keywords (Nodewords) module to put description and meta keywords on any page.

4. Use page Title Module which gives custom title meta tag. This is a great module as you can target two similar keywords in search engines, using title meta tag and actual title of the page (displaying it with H1 tag)

5. robots.txt - Though its always better to use and edit robots.txt manually, you can use robots.txt module to generate robots.txt file automatically. Its perfect if you are running multiple sites on drupal.

6. Use XMLSitemap to create sitemaps which are very handy on big sites and ecommerce sites to get the pages indexed in google and other search engines.

7. SEO checklist is another good module which you can use on your drupal site. The module itself don’t do much but provides a checklist of SEO modules which you can install on your site.

Advanced SEO for Drupal

1. Avoid modules using 302 redirect - There are few modules of drupal (like wikitools) which uses 302 redirection instead of 301 redirection. Since 302 is considered to be temporary redirection, you should always do 301 redirection. Make sure if you are using any such module (which rewrites urls), it is doing 301 redirection.

2. Theme Edits - Drupal has a great template system and you can make lot of search engine friendly moves from the view itself which is perfect for someone who don’t want to write modules for small features. If you are looking to have different titles meta tags for different content types or you want something different for only one page, you can use these themes to do so. For example, for a page /node/117, you can create a theme copying page.tpl.php and change it looks. Similarly for content types, make a copy of node.tpl.php file.

3. Remove Content Duplication - Ideally you want to remove all kind of content duplication on your drupal site, so you can add the following code in your robots.txt file to block spiders indexing the content.

User-agent: *
Disallow: /aggregator/
Disallow: /comment/reply
Disallow: /node/add
Disallow: /archive/
Disallow: /tracker/
Disallow: /user/
Disallow: /*?*
Disallow: /*feed

This is just a basic SEO guide for drupal but it covers everything which you need on drupal. You can ask any questions related to drupal and seo in comments.

If you enjoyed this post, make sure you subscribe to my RSS feed!

Other Related posts:

  1. 5 Most Common SEO Mistakes
  2. 11 Best Wordpress Plugins for SEO
  3. How to Stop Google Caching your pages in its index ?
  4. Demystifying Robots Meta Tags
  5. Tagging, Tag Clouds and Problems with Content Duplication

5 Comments on this post

Trackbacks

  1. Cynthia Perla said:

    Hi, I just stumbled onto your site from a Twitter post. Your SEO advice is great. I’ve just started to use Drupal, and I didn’t realize that rewriting the urls with pathauto would cause duplicate content. Thank you for the useful post! I’ll come back if I have any problems with it.

    Cynthia

    November 14th, 2008 at 12:16 am
  2. WT said:

    If you block /*?* with robots.txt on a Drupal site it may prevent spiders from finding all of your content because all pagination will be blocked.

    For example, if you have a taxonomy term called “laptops”, some nodes will be listed on a page at example.com/tag/laptops?page=4 and depending on how the site is configured, there may not be a way for search engines to reach that page…

    November 15th, 2008 at 3:02 pm
  3. Esoomllub said:

    I’ve been kind of a WordPress snob, primarily because that is what I first experienced, and that is what I honed my CMS type SEO skills on. After a quick read of your article, I wish I had picked up Drupal a while back. Based on about a day of experimenting and considering tips from posts like yours, I think I have a good base Drupal SEO prepared install package that I can roll out to future projects. Thanks!

    November 19th, 2008 at 1:50 am
  4. Ulysse said:

    Great article, thanks. Do you know if there is a module for link exhange like an existing Xlink for Joomla?

    November 27th, 2008 at 5:13 pm
  5. Pushkar Gaikwad said:

    As far as I know, there is no module in drupal which helps in easy link exchange. Can you tell me more about what this joomla module do ? Though not being a great fan of link exchanges, if I found it good, I will myself try to write a module in drupal.

    November 27th, 2008 at 5:26 pm

LEAVE A COMMENT

Subscribe Form

Subscribe to Blog

Hi, I am Pushkar Gaikwad, Owner of nBridges Media. Through this blog, I am sharing my knowledge and experience about SEO, Marketing and Pretty much everything about Web and Webmasters.

I Consider myself as a SEO/Programmer/Marketer and have my share of success and failures in all three and this blog is a medium to share those experiences and learnings with others. I am working as a Full time SEO since 2007, doing consultancy as well as handling SEO campaigns for various clients in Health, Gaming, e-Commerce, Finance and adult niches.

If you want to hire me then please contact me through the sitewide contact form. Cheers

Be My Friend - Join me at
* Twitter
* StumbleUpon
* Sphinn
* FriendFeed

Popular Posts

Blogroll

Recent Readers

JOIN MY COMMUNITY!