RSS

Newsletter

The CodeKarate Newsletter is the best way for technical ninjas to keep their swords sharpened. Don't worry, we won't flood your inbox and your email address will always remain private.
Back to Top

Drupal 7 Global Redirect Module

Episode Number: 
9

Learn how the Drupal 7 Global Redirect module can help with the Search Engine Optimization (SEO) of your Drupal site. In this short episode you will learn:

  • How to download and install the Drupal 7 Global Redirect module using Drush
  • What the Drupal 7 Global Redirect module does and how it can help with SEO
DDoD Video: 
See video
Full Text: 

Welcome to another Daily Dose of Drupal, today we are on Episode number 9 and we will be going over the Drupal Global Redirect module. Last time we talked about the Drupal 7 Redirect module and how that can be helpful for some Search Engine Optimization (SEO) reasons and we’re also going to today look at the Global Redirect module and see how that can also helps with your website’s SEO.
So the first thing that we’re going to do is we’re going to just look at out test site here and you can see that we have this test page that we had the last time, the URL is test-page2. However; because the way Drupal handles its system URL s, if I go node/12 I get to this same page and you can find out the content’s Node ID, if you hover over the Edit and you look down here at the bottom corner it says node/12/edit.

So if I go to node/12/edit it brings me to the Node Edit page or if I just go to node/12 it brings me to the Node View page which is the same of course as test-page2. So what can happen is it is possible for the search engine to index a page twice using the Node Page and the actual URL alias that you set up.

So just to make sure that’s prevented we can use the Global Redirect module but you can see what the Global Redirect module does … I mean you can read this I suppose but it’ll do things just to make sure that all your URL across your site are accessed in a consistent way so there’s only one true URL to get to a specific page.

So we’re going to go ahead and download that and now that it’s downloaded we’ll come back here and go to our modules page and we will scroll down and find the Global Redirect module which is right here and you can see that it stops duplicate content as the main goal of Global Redirect. So now that it’s enabled we’ll go back to our homepage, you can see if we go to node/12 now, you’ll see how the URL now changed, if I add a slash at the end you’ll notice that it takes that URL out. So it’s a very simple module and it only does one thing but it does it very well.

It’ll make sure that there’s zero chance that a Search Engine is going to find duplicate Drupal node content on your site and it’s going to make sure that URL’s are only accessible through one Specific unique URL rather than through multiple URLs which is what comes default with a new Drupal installation.

So that’s it for this time and if you have not already signed up for the codekarate.com newsletter please do so and follow me on Twitter @smthomas3. And the reason I want you to do that is because I want you to let me know what videos you want to see.
So if you have a module and you’d like it demonstrated or you have specific question, you can contact me through my codekarate.com site or on Twitter and I will try to put a video up answering that. So until next time, this is the Daily Dose of Drupal, thanks for watching.

Discussions

1
dalin (not verified)

Global Redirect will probably

Global Redirect will probably offer you zero SEO benefit. See here for an old explanation of why:
http://www.advomatic.com/dark_arts_of_seo_why_global_redirect_wont_help_you

1-1
shane

Good Article

That is definitely a good article and has some valuable information. You may be right that in some cases Global Redirect may offer zero SEO benefit, but as the link mentions, no one really knows all the ins and outs of the search engine algorithms.

Here is the question phrased a different way, will having the Global Redirect module hurt you in SEO? The answer to that should be a definite no. It is not going to hurt you, but may or may not help.

Is it going to degrade your performance slightly, yes, but there are many choices in Drupal that will degrade your performance (and many much worse than this module). I can think of a bunch of decisions that were made between Drupal 6 and Drupal 7 that degraded performance, however for flexibility reasons they were necessary to keep moving Drupal forward (this could be a topic in itself).

As for me, I enjoy a clean site architecture where everything is available through one and only one URL. Because of this, I use the Drupal Global Redirect module on many of the Drupal sites that I build (although not necessarily all of them).

Thanks for the comment.

shane's picture

Post new comment

  • 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> <h2> <h3> <blockquote> <img>
  • Lines and paragraphs break automatically.
  • You can enable syntax highlighting of source code with the following tags: <css>, <html>, <php>, <c>, <cpp>, <drupal5>, <drupal6>, <java>, <javascript>, <mysql>, <python>, <ruby>. PHP source code can also be enclosed in <?php ... ?> or <% ... %>.

More information about formatting options

By submitting this form, you accept the Mollom privacy policy.