diff --git a/html/user_login.php b/html/user_login.php
index 94e4a9099..0780af731 100644
--- a/html/user_login.php
+++ b/html/user_login.php
@@ -129,7 +129,7 @@ if ( $User->admin == 0 || (defined("MULTI")&& MULTI == 0 ) )
$folder=$User->get_available_folder();
if ( $folder != null && count($folder) == 1 )
{
-
+ echo _("Si la redirection ne fonctionne pas, vous devez changer la valeur de NOALYSS_URL ");
redirect(NOALYSS_URL.'/do.php?gDossier='.$folder[0]['dos_id']);
exit();
}
diff --git a/include/constant.php b/include/constant.php
index a10f5bb39..b27c1a35c 100644
--- a/include/constant.php
+++ b/include/constant.php
@@ -322,7 +322,7 @@ if ( ! defined ("NOALYSS_URL")) {
$protocol=$_SERVER['REQUEST_SCHEME'];
}
$base=$protocol.'://'.
- $_SERVER['HTTP_HOST'].
+ $_SERVER['SERVER_NAME'].
":".$_SERVER['SERVER_PORT'].
dirname($_SERVER['PHP_SELF']);
define ("NOALYSS_URL",$base);