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)!
3 Comments
Global redirect
Hi
I have installed the Global Redirect in my modules folder but cannot see it anywhere to enable it. The nodes are still showing up as well.
I am presuming this is not self-executing?
Can you tell me what I need to do to enable your module :-)
Thank you for all your great work
Richard in Vancouver
Thanks for the comment
It depends which version you installed - please open an issue in the Global Redirect queue located here: drupal.org/project/issues/globalredirect.
It could be that there is a bug in your version - if its V5, try the dev version - I may have done a bad commit on the official release which may mean it doesn't include a .info file.
hi njt1982, you are right:
hi njt1982,
you are right: Google DO NOT like duplicate pages!
Thanks for tip!
Post new comment