1 2 3 4 5 6 7 8 9 10 11
<?php if (!empty($_SERVER['HTTPS']) && ('on' == $_SERVER['HTTPS'])) { $uri = 'https://'; } else { $uri = 'http://'; } $uri .= $_SERVER['HTTP_HOST']; header('Location: '.$uri.'/documents/'); exit; ?> Something is wrong with the XAMPP installation :-(