Drupal Pathauto – Optimal URL Pattern Settings

Drupal – out of the box, has URL’s that form patterns such as this: node/1234 , user/53, and taxonomy/term/27.  So if you write your very first article, the URL to that article will look like this: www,example.com/node/1.  Now, I’m not particularly thrilled with such an URL, as it’s not very descriptive for the search engines.  Fortunately, Drupal also allows you to overwrite those default URL’s with something that’s quite a bit more descriptive.  These are known in Drupalese* as ‘URL Aliases’.  By installing the optional Pathauto module, you can automatically generate URL’s based on your Pathauto configuration patterns.

So here at BurningKnife, my ‘node/1′ is actually “www,burningknife.com/page/191/about-me” – which you might more reasonably guess what it contains than if you ran across “www,burningknife.com/node/1″.  I could equally rename it, if I thought anyone really cared, to include my name – so that search engine results would locate the page if you searched for my name.  The power you have to rename URL’s is a dream come true for SEO purposes!
Another example, take a look at these two identical URL’s (They both point to the same page on my site)

www‚burningknife.com/node/2

www,burningknife.com/article/192/fundamental-basics-earning-money-online.

Now which do you think is better fodder for the search engine spiders?  You guessed it!  The second URL contains keywords, which is always a help when it comes to search engines.

Here are my actual URL patterns that I currently use:

Default path pattern

article/[dd][nid]/[title-raw]

Pattern for all Blog entry paths:

blog/[dd][nid]/[author-name-raw]/[title-raw]

Pattern for all Forum topic paths

forum/[dd][nid]/[title-raw]

Pattern for all Page paths:

page/[dd][nid]/[title-raw]

Pattern for all Poll paths:

poll/[dd][nid]/[title-raw]

Pattern for all Story paths:

article/[dd][nid]/[title-raw]

You may have noticed that I have /[dd][nid]/ in the middle – which is not a default for Drupal ‘out-of-the-box’.  I’ve known that there are times when it’s desireable to have at least a three digit number in the URL (It’s a Google News thing).  I also realized to my horror that I would never be able to duplicate a title – it would create the same URL to the best of my knowledge (Any Drupal masters out there with better information?)  So I decided to force everything to be unique.  I put the [nid], which is Drupal’s ‘node id’ – a fancy Drupalese term meaning it’s unique numbered designation for a webpage.  But because it starts at ’1′, and I wanted at least three digits, I tossed in the [dd] date, which is always padded into a two digit number by Drupal.  This means that if I want to do an article titled “The Best Hosting Package” a year or two from now – it won’t conflict with my first article by the same name – since it will have a different date of composition, and a different node number.

I didn’t like using “story” to refer to my articles, so I changed that… Other than these changes, it’s pretty much the default as it comes out of the box. Drupal makes SEO work so easy!

There are some exellent articles on SEO for Drupal – be sure to Google for them and read how to set up your Drupal website for the best SEO practices – once your site is a few months or years old, you won’t want to change things.  (Or you’d lose all your search engine placement!)

Hope this helps anyone trying to put together a Drupal site – I know I spent hours trying to figure out what URL patterns would be optimal – and these are the settings I came up with.
(*Drupalese – I thought that this would be my own modest contribution to the Drupal community – but someone has beaten me to it!  Drupal often uses an esoteric language that only true Drupal masters can decipher and use… things like ‘Taxonomy”, “Vocabulary”, “CCK”, “Node”, “Views”, and so forth.  It takes awhile to master the new language, but it’s fun!)

Related posts:

  1. Three Column Layout Trick for Drupal.
  2. Upgrading Your Drupal Website – Step by Step.
  3. Sitemap Script for Drupal v6
  4. Robots Text File Basics

7 comments to Drupal Pathauto URL Pattern Settings – Good SEO!

  • Thank you for posting this article on SEO, I've spent the last month learning everything I can but haven't come across this before. And thanks for being do follow as well, I also appreciate that. 

  • Nicky from SEO India

    This information will be very useful for Drupal Users who want to make the URLS of their website User friendly. I was looking for this information and found these details very helpful. Keep up the good work.

  • Almost everyone that makesmoney on the internet (even the millionaires) do so through affiliate marketing. Being successful in affiliate marketing involves knowing the formula that makes other affiliate marketers successful. For example, autoblogging. Autoblogging has been one of the least well-known forms of making money for quite some time… basically because it’s quite difficult to make a good auto-blog. Yet, when done right, it can provide you with a lifetime of passive income with the only real work required being the setting up process. Video Marketing, and several other marketing strategies are all designed to drive traffic to your site, can be incorporated steadily in order to raise the position your site appears in the SERPs when any one searches for a term related to your site. And yet, even this can be totally automated.

  • Thanks for the info! I was wondering how to do this in drupal! Great solution imo.

    Greetings,

    RC Vliegtuig

  • Thank you! I have been struggling to get a clients URL more search engine friendly. I usually work with wordpress, so this helped me a ton!

  • I don’t usually sign up my details to blogs but after reading this post I have signed up. I am putting together a personal blog and then a business blog so I was looking for a decent list of plugins. I knew about CommentLuv and KeywordLuv before but not the rest. Thanks for the help.

  • Nice article. This would be a great help for everyone. Specially for those people who’s works is totally depend upon the blogging and SEO. This is very informative as it stated the different information that we need to know more about Drupal  Pathauto. Thank you so much.

Leave a Reply

 

 

 

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <font color="" face="" size=""> <span style="">

This site uses KeywordLuv. Enter YourName@YourKeywords in the Name field to take advantage.

You Comment - I Follow

Comment Policy

Before you waste your time with comment spam that will simply be deleted:

READ THIS FIRST!

I do enjoy providing backlinks to valuable comment additions to this site.

Font Controller

+(reset)-

RSS Feeds

     RSS Feed

     Email Feed

     Comment Feed

What Happened!

If you're a previous visitor, you probably just noticed some changes here, click here to find out what happened.

Entrepreneurship Blogs - BlogCatalog Blog Directory

Weblogs Directory

Other Tags