Extension:Redirect302

 __FILE__,                                       'name' => 'Redirect302',                                       'version' => Redirect302_VERSION,                                       'author' => array( 'Joshua Gay' ),                                       'url' => 'http://www.mediawiki.org/wiki/User:Joshuagay/Redirect302',                                       'descriptionmsg' => 'redirect302-desc',                                       );

// messages i18n $redirect302IP = dirname( __FILE__ ). '/';

$wgExtensionMessagesFiles['ReplaceText'] = $redirect302IP. 'Redirect302.i18n.php';

// Register hook $wgHooks['InitializeArticleMaybeRedirect'][] = 'redirect302_hook';

// Redirect with 302 function redirect302_hook($title, $request, &$ignoreRedirect, &$target, &$article) { if (!$ignoreRedirect && $article->isRedirect) { if(($target = $article->followRedirect) instanceof Title) { $target = $target->getFullURL; } }  return true; }