diff --git a/index.php b/index.php index 7f28e55..38123ec 100644 --- a/index.php +++ b/index.php @@ -24,6 +24,6 @@ * along with volkszaehler.org. If not, see . */ -header('Location: frontend/'); +header('Location: ' . ((isset($_SERVER['HTTPS'])) ? 'https://' : 'http://') . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']) . '/frontend/'); ?>