Cara redirect ke https
Untuk redirect http ke https tambahkan baris dibawah ini kedalam file .htaccess RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
Untuk redirect http ke https tambahkan baris dibawah ini kedalam file .htaccess RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
$hour = (int) date(‘G’); if ($hour >= 6 && $hour <=19) { // between 6am and 7pm } else { //between 7pm and 6am }