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