X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=scripts%2Fwebredirect.php;h=e1124769adba81b27f23c745b1d0e4e6523b5d32;hb=86136c76d3aa444fad543bc0e3b12704984d6579;hp=6c1c2c6ec759d99b3690af06f56dd9cb7f69038f;hpb=0337d704b62718d7c77106c0e4c4e26fb02beacf;p=platal.git diff --git a/scripts/webredirect.php b/scripts/webredirect.php index 6c1c2c6..e112476 100644 --- a/scripts/webredirect.php +++ b/scripts/webredirect.php @@ -1,6 +1,6 @@ xdb->query( if ($url = $res->fetchOneCell()) { $url = preg_replace('@/+$@', '', $url); if($path) { - header("Location: http://$url/$path"); + redirect("http://$url/$path"); } else { - header("Location: http://$url"); + redirect("http://$url"); } exit(); }