8 lines
214 B
PHP
8 lines
214 B
PHP
<?PHP
|
|
$target = $_SERVER['HTTP_HOST'].rtrim(dirname($_SERVER['PHP_SELF']), '/\\').'/stats/';
|
|
if(isset($_SERVER['HTTPS'])) {
|
|
header('Location: https://'.$target);
|
|
} else {
|
|
header('Location: http://'.$target);
|
|
}
|
|
?>
|