Search Engine Friendly URL’s and Drupal – Part 1

Content management systems (CMS) allow you to create content on the fly without having to worry about coding in HTML or uploading via FTP. Most content management systems then use a combination of PHP or ASP querystrings to deliver that content in a format something like http://www.yourdomain.tld?pid=36 or http://www.yourdomain.tld?q=node/15.

The reason for this is mostly to do with the database driven nature of a CMS, and it’s ability to retrieve all content/data related to a specific id. So what’s wrong with that? Most search engines don’t index pages whose URL contains a question mark or other character (like an ampersand ‘&’ or equals sign ‘=’).

What does this mean? It means that people can’t find your site. There are times however when you will want to create a nice clean URL for use in a marketing campaign or as a link on Facebook, or some other link sharing website. There are a number of ways to achieve this using Drupal and I’ll examine each of them in turn. Today we’re going to hand curate (Emiras favourite term) them.

Hand Curated

The quickest and easiest way to create a nice URL is to do it when you’re creating new content. Scroll down to the “URL Path Settings” area and simply enter your path. Remember to leave out the trailing slash at the end, otherwise it won’t work, it’ll be banjaxed.

While this path can be anything you want, try to keep to the following rules:

  1. Keep it short - no one will remember a really long URL.
  2. Keep it simple - we’re not trying to win the Man Booker Prize here.
  3. Keep it relevant – the URL should relate to the title of the page/article and it’s content – search engines take relevancy into account too when indexing your pages.
  4. Keep it organized – if you have a few different types of content on your site, try to organize your content via the URL. For example all Articles would go under “articles/your-title-here” and all Publications would go under “publications/your-title-here“. Also note that I use the hyphen “-” to separate the words in the title. You can use the underscore also “_”, but I prefer the hyphen as it’s easier to read aloud and people refer to it as “dash” also. You’d be surprised how many people I speak to don’t know what “underscore” or “underbar” means.

In Part 2 I’ll examine using the Path Auto module to automate this for you and then for Part 3 I’ll go on to talk about using Views and Arguments and how they can be used to create what are called “Hackable URL’s“.

Tags: , ,

8 Responses to “Search Engine Friendly URL’s and Drupal – Part 1”

  1. Web Designer Says:

    nice article, web 2.0 compliance web design along with SEO friendly urls can really help with the online marketing campaign but still there are time when you want to use complex urls. For example, if my page is getting data from a post back than I never want the user to land on that page directly without posting the data, though this bug can be fixed by putting a simple line into code.

  2. Colin Calnan Says:

    Yes indeed, there are times when a complex URL string is required. However in drupal the URL is just an alias to an actual querystring such as http://www.example.com?q=node/133. In this instance the query ‘q’ is asking for the ‘node’ with the ‘id’ of 133. Therefore the page can still grab all the variables it needs.

    Using the POST method on a page does not matter in relation to querystrings, the posted variables will not appear in the URL, only GET variables do this.

  3. Lovely Me Says:

    Hi!
    How About using Short URL services?
    will short URLs redirection help my SEO rank if i use it inside my articles? (like tinyurl.com or 4url.net)

  4. Colin Calnan Says:

    Short URL services are great to use, they simplify the URL down into a shorter and more human-readable format. For SEO there are a number of factors to take into account such as having the link text be related to the text on the page it links to.

    My advice would be to create a link using a short URL service but to not use the created URL as the text of the link, instead choosing some words related to the content it’s linking to.

    I hope that makes sense. Feel free to follow up with more questions.

  5. Mike Says:

    Enoyed your post and bookmarked you for future reading.. Thinking of adding some of your content to my website ZestforMarketing

  6. Justin Says:

    I’ve added this feed to my site. Great info.

  7. Check Pagerank Says:

    A fantastic read….very literate and informative. Many thanks….what theme is this you are using and also, where is your RSS button ?

  8. Richard Says:

    Agree with a lot of the mentioned topics covered here, specially interested on your points regarding SEO

Leave a Reply

 


t. 604.684.2498 | f. 604.721.4007 | e. turningheads [at] raisedeyebrow.com