2017-03-09 71 views

回答

0

請編輯index.php文件並從下面的代碼添加新行。

<?php 

// Add new lines - Forwarding client to https protocol when it said your website on http protocol! 
if($_SERVER['HTTP_X_FORWARDED_PROTO'] != 'https') { 
    header("Location: https://example.com"); 
    exit; 
} 
// End new lines 

define('DRUPAL_ROOT', getcwd()); 

require_once DRUPAL_ROOT . '/includes/bootstrap.inc'; 
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL); 

// Add new line - Change $base_url to absolute URL 
$base_url = 'https://example.com/'; 
// End new line 

menu_execute_active_handler(); 
+0

非常感謝您的先生。 –