ThingyMaJig

Thingy Ma Jig is the blog of Nicholas Thompson and contains any useful tips, sites and general blog-stuff which are considered interesting or handy!

Connect

LinkedIn GitHub

Topics

announcement 25 apache 3 Apple 1 bash 8 code 7 cool 30 Days Out 8 Dark Basic Pro 4 design 12 doctor who 1 Drupal 74 E4600 1 EOS 400D 3 firefox 2 Flickr 3 free 21 games 5 geek 38 git 2 GreaseMonkey 1 hardware 7 Homebrew 1 How to 37 humour 5 iphone 1 javascript 1 jquery 1 K800i 6 k850i 4 lighttpd 3 linux 33 mac 9 miscellaneous 4 mobile phone 9 music 4 mysql 8 n73 1 n95 1 New Relic 1 Ogre3D 1 OS X 2 performance 3 photos 10 programming 40 Quicksilver 1 review 19 security 3 SEO 6 software 12 svn 2 technology 4 tip 7 tips 10 tv 3 video 3 vim 7 webdev 2 websites 33 wii 1 windows 1 YADS 10

Announcing: Global Redirect Module

Posted on 08 October 2006 in
programming Drupal announcement

Well its nearly 1am - but I've just submitted by very first Drupal module to the community

http://drupal.org/project/globalredirect

Basically, if you have an alias for a node then it will redirect you to the alias if you try to access the node directly… The best example is the site it was designed for. At Sportbusiness.com you could access a news story by:

http://www.sportbusiness.com/node/160374

However if you try that on sportbusiness.com, this module picks up that node/160374 actually has an alias attached to it and you will automatically be whisked away to that aliased URL, in this case:

http://www.sportbusiness.com/news/160374/london-2012-appoints-head-of…

The reason I wanted to do this was because search engines such as Google DO NOT like duplicate pages (ie pages with different URL's but the same content). This could land you in the sandbox! However with this module, if google manages to find a link to node/123456 then wont see the same content as its aliased sister page, instead it will get permanently redirected (a 301 redirect)!