Great module, really looking forward to this developing. Checking through other URL shorteners, the standard approach seems to be using 301 as the HTTP Response Code. As I understand it, good practice for SEO.

From http://api.drupal.org/api/function/drupal_goto/6 the default setting for drupal_goto() is to use 302. What about updating line 25 of drupal_goto() so a 301 code is used instead:

drupal_goto($orig_url, NULL, NULL, 301);

Comments

irakli’s picture

Thank you for the kind words.

Is 301 what bit.ly does?

toodlepip’s picture

Hiya...yup, think Bit.ly does, Cli.gs definitely does, and so does Awe.sm. I think it's becoming the standard, although could be wrong.

irakli’s picture

Just checked. Bit.ly does 301, too.

Good catch, thank you.

irakli’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.