Post by Ilianleboss » Wed Mar 18, 2020 6:29 am

Je voulais Forcer l'utilisation du https sur mon site (https://pastgames.000webhostapp.com/) mais quand je clic sur le logo du site ou sur un bouton et sur les produit le site se passe en http://
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
quelqu’un peut m'aider ?
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/');
Voici le config.php du dossier admin

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/');

Newbie

Posts

Joined
Mon Mar 09, 2020 1:08 am

Post by IP_CAM » Thu Mar 19, 2020 11:25 pm

Server ROOT HTTP config.php seulement:

Code: Select all

<?php
// HTTP
define('HTTP_SERVER', 'http://pastgames.000webhostapp.com/');
define('HTTP_CATALOG', 'http://pastgames.000webhostapp.com/');

// HTTPS
define('HTTPS_SERVER', 'http://pastgames.000webhostapp.com/');
define('HTTPS_IMAGE', 'http://pastgames.000webhostapp.com/image/');
Server ROOT HTTPS config.php seulement:

Code: Select all

<?php
// HTTP
define('HTTP_SERVER', 'https://pastgames.000webhostapp.com/');
define('HTTP_CATALOG', 'https://pastgames.000webhostapp.com/');

// HTTPS
define('HTTPS_SERVER', 'https://pastgames.000webhostapp.com/');
define('HTTPS_IMAGE', 'https://pastgames.000webhostapp.com/image/');

My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland
Who is online

Users browsing this forum: No registered users and 19 guests