Merge branch 'bug-637' into release
[cacert-devel.git] / www / index.php
index d42a4dc..7330877 100644 (file)
 
        if(!array_key_exists('signup',$_SESSION) || $_SESSION['signup']['year'] < 1900)
                $_SESSION['signup']['year'] = "19XX";
+       
+       if ($id == 19)
+       {
+               $protocol = $_SERVER['HTTPS'] ? 'https' : 'http';
+               $newUrl = $protocol . '://wiki.cacert.org/FAQ/Privileges';
+               header('Location: '.$newUrl, true, 301); // 301 = Permanently Moved
+       }
 
        showheader(_("Welcome to CAcert.org"));
        includeit($id);