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]