Browse Source

make protocol settings adaptive

main
ghost 2 years ago
parent
commit
1d7031e4f7
  1. 2
      config/app.php.txt

2
config/app.php.txt

@ -11,7 +11,7 @@ error_reporting(E_ALL);
* Project domain, without slash on postfix * Project domain, without slash on postfix
* *
*/ */
define('WEBSITE_DOMAIN', (issue($_SERVER['HTTP_HOST']) ? 'http://' . $_SERVER['HTTP_HOST'] : '')); define('WEBSITE_DOMAIN', (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on' ? 'https' : 'http') . '://' . (!empty($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : ''));
/* /*
* Search results per page before show the read more link. * Search results per page before show the read more link.

Loading…
Cancel
Save