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]