diff --git a/htdocs/public/index.php b/htdocs/public/index.php
index 9cefff19e7cf6932b2c148d4df68cbf467893aa7..e736ad7dd93332472050d544fae9cac6a9606dcd 100755
--- a/htdocs/public/index.php
+++ b/htdocs/public/index.php
@@ -1,14 +1,4 @@
 <?php require "../includes/bootstrap.php"; ?>
-<?php
-$isSecure = false;
-if (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') {
-    $isSecure = true;
-}
-elseif (!empty($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https' || !empty($_SERVER['HTTP_X_FORWARDED_SSL']) && $_SERVER['HTTP_X_FORWARDED_SSL'] == 'on') {
-    $isSecure = true;
-}
-$REQUEST_PROTOCOL = $isSecure ? 'https' : 'http';
-?>
 
 <!DOCTYPE html>
 <html lang="en">