From c15c822e97078b0fef489e1d7709771f22effb3d Mon Sep 17 00:00:00 2001 From: Meezaan-ud-Din Abdu Dhil-Jalali Wal-Ikram Date: Mon, 17 Jun 2019 17:46:52 +0100 Subject: [PATCH] SSL change --- html/.htaccess | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/html/.htaccess b/html/.htaccess index 858d268..a27c058 100644 --- a/html/.htaccess +++ b/html/.htaccess @@ -5,13 +5,9 @@ RewriteEngine On RewriteRule .* - [F] -#RewriteCond %{HTTP_HOST} ^www.alquran.cloud$ [OR] -#RewriteCond %{HTTPS} off -#RewriteRule ^(.*)$ https://alquran.cloud/$1 [R=301,L] -RewriteCond %{HTTPS} off [OR] -RewriteCond %{HTTP_HOST} ^www\. [NC] -RewriteCond %{HTTP_HOST} ^(?:www\.)?(.+)$ [NC] -RewriteRule ^ https://%1%{REQUEST_URI} [L,NE,R=301] +RewriteCond %{HTTP_HOST} ^www.alquran.cloud$ [OR] +RewriteCond %{HTTPS} off +RewriteRule ^(.*)$ https://alquran.cloud/$1 [R=301,L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^ index.php [QSA,L]