From: Sam Reed Date: Sat, 3 Sep 2011 22:50:44 +0000 (+0000) Subject: Set a HTTP 301 header in redirect.php X-Git-Tag: 1.31.0-rc.0~27929 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/?a=commitdiff_plain;h=71ef827d54d2e8056f315ffb960d08e3db908762;p=lhc%2Fweb%2Fwiklou.git Set a HTTP 301 header in redirect.php Upstream wikia change --- diff --git a/redirect.php b/redirect.php index c0a1602155..eb15c6b96e 100644 --- a/redirect.php +++ b/redirect.php @@ -18,4 +18,4 @@ $page = $wgRequest->getVal( 'wpDropdown' ); $url = str_replace( "$1", urlencode( $page ), $wgArticlePath ); -header( "Location: {$url}" ); +header( "Location: {$url}", true, 301 );