X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=blobdiff_plain;f=redirect.php;h=fde960e015fa21080e8e719c97d633596818f10e;hb=5a6e1ce93581cf7d3353b284632b17e3cca211de;hp=f84d88217081a37ea591839b38e37054db98c591;hpb=6a87ccc06a40a5c0b127567340f205854e0a56f9;p=lhc%2Fweb%2Fwiklou.git diff --git a/redirect.php b/redirect.php index f84d882170..fde960e015 100644 --- a/redirect.php +++ b/redirect.php @@ -1,18 +1,36 @@ getVal( "wpDropdown" ); +$page = $wgRequest->getVal( 'wpDropdown' ); $url = str_replace( "$1", urlencode( $page ), $wgArticlePath ); -header( "Location: {$url}" ); -?> +header( "Location: {$url}", true, 301 );