Set a HTTP 301 header in redirect.php
authorSam Reed <reedy@users.mediawiki.org>
Sat, 3 Sep 2011 22:50:44 +0000 (22:50 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Sat, 3 Sep 2011 22:50:44 +0000 (22:50 +0000)
Upstream wikia change

redirect.php

index c0a1602..eb15c6b 100644 (file)
@@ -18,4 +18,4 @@ $page = $wgRequest->getVal( 'wpDropdown' );
 
 $url = str_replace( "$1", urlencode( $page ), $wgArticlePath );
 
-header( "Location: {$url}" );
+header( "Location: {$url}", true, 301 );