From 922f7123ad2f01cf068c828c3b544f21ae4b2b6d Mon Sep 17 00:00:00 2001 From: Meezaan-ud-Din Abdu Dhil-Jalali Wal-Ikram Date: Wed, 15 May 2019 09:14:32 +0100 Subject: [PATCH] Add LB check to apache --- html/.htaccess | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/html/.htaccess b/html/.htaccess index 179f476..ed630c2 100644 --- a/html/.htaccess +++ b/html/.htaccess @@ -1,9 +1,12 @@ AddType audio/mp3 .mp3 RewriteEngine On -#RewriteCond %{HTTP_HOST} ^alquran.cloud$ [OR] + + RewriteRule .* - [F] + +RewriteCond %{HTTP_HOST} ^alquran.cloud$ [OR] RewriteCond %{HTTP_HOST} ^www.alquran.cloud$ -#RewriteCond %{HTTPS} off +RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://alquran.cloud/$1 [R=301,L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d