J'ai aussi u des erreur dans les logs :
Code: Select all
PHP Warning: Use of undefined constant HTTP_SERVER - assumed 'HTTP_SERVER' (this will throw an Error in a future version of PHP) in /storage/ssd4/018/12155018/public_html/catalog/controller/startup/startup.php on line 20
PHP Warning: Use of undefined constant HTTP_SERVER - assumed 'HTTP_SERVER' (this will throw an Error in a future version of PHP) in /storage/ssd4/018/12155018/public_html/catalog/controller/startup/startup.php on line 20
Et donc je pense que c'est mon fichier config.php qui fait beugé le site en https et j'ai rajouter ceci dans le fichier .htaccess (pour forcer l'utilisation du https)
Mais toujours rien ! le site toujours en http alors q'il y a le ssl !
J'ai déjà contacter mon hébergeur mais aucun réponse!
Pouvez vous m'aider a me dire si la config du site et mal ou une solution pour forcer l'utilisation du https sur mon site! (les fichier config.php de mon site sont si dessous)
Merci pour aide!
Voici le config.php
Code: Select all
<?php
// HTTP
define('HTTP_SERVER', 'http://pastgames.000webhostapp.com/');
define('HTTP_CATALOG', 'http://pastgames.000webhostapp.com/');
// HTTPS
define('HTTPS_SERVER', 'https://pastgames.000webhostapp.com/');
define('HTTPS_IMAGE', 'https://pastgames.000webhostapp.com/image/');
// DIR
define('DIR_APPLICATION', '/storage/ssd4/018/12155018/public_html/catalog/');
define('DIR_SYSTEM', '/storage/ssd4/018/12155018/public_html/system/');
define('DIR_IMAGE', '/storage/ssd4/018/12155018/public_html/image/');
define('DIR_STORAGE', '/storage/ssd4/018/12155018/storage/');
define('DIR_LANGUAGE', DIR_APPLICATION . 'language/');
define('DIR_TEMPLATE', DIR_APPLICATION . 'view/theme/');
define('DIR_CONFIG', DIR_SYSTEM . 'config/');
define('DIR_CACHE', DIR_STORAGE . 'cache/');
define('DIR_DOWNLOAD', DIR_STORAGE . 'download/');
define('DIR_LOGS', DIR_STORAGE . 'logs/');
define('DIR_MODIFICATION', DIR_STORAGE . 'modification/');
define('DIR_SESSION', DIR_STORAGE . 'session/');
define('DIR_UPLOAD', DIR_STORAGE . 'upload/');
Code: Select all
<?php
// HTTP
define('HTTP_SERVER', 'http://pastgames.000webhostapp.com/admin/');
define('HTTP_CATALOG', 'http://pastgames.000webhostapp.com/');
define('HTTP_IMAGE', 'http://pastgames.000webhostapp.com/image/');
// HTTPS
define('HTTPS_SERVER', 'https://pastgames.000webhostapp.com/admin/');
define('HTTPS_CATALOG', 'https://pastgames.000webhostapp.com/');
define('HTTPS_IMAGE', 'https://pastgames.000webhostapp.com/image/');
// DIR
define('DIR_APPLICATION', '/storage/ssd4/018/12155018/public_html/admin/');
define('DIR_SYSTEM', '/storage/ssd4/018/12155018/public_html/system/');
define('DIR_IMAGE', '/storage/ssd4/018/12155018/public_html/image/');
define('DIR_STORAGE', '/storage/ssd4/018/12155018/storage/');
define('DIR_CATALOG', '/storage/ssd4/018/12155018/public_html/catalog/');
define('DIR_LANGUAGE', DIR_APPLICATION . 'language/');
define('DIR_TEMPLATE', DIR_APPLICATION . 'view/template/');
define('DIR_CONFIG', DIR_SYSTEM . 'config/');
define('DIR_CACHE', DIR_STORAGE . 'cache/');
define('DIR_DOWNLOAD', DIR_STORAGE . 'download/');
define('DIR_LOGS', DIR_STORAGE . 'logs/');
define('DIR_MODIFICATION', DIR_STORAGE . 'modification/');
define('DIR_SESSION', DIR_STORAGE . 'session/');
define('DIR_UPLOAD', DIR_STORAGE . 'upload/');