Update htaccess for non-ssl

This commit is contained in:
Ed sea
2025-08-02 23:54:55 +02:00
parent 9634a3ea80
commit faf322b0c1

View File

@@ -1,8 +1,8 @@
RewriteEngine On
# Force HTTPS (redirect HTTP to HTTPS)
RewriteCond %{HTTPS} off
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
#RewriteCond %{HTTPS} off
#RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
# Redirect www to non-www (if you want to remove www)
RewriteCond %{HTTP_HOST} ^www\.(example\.com)$ [NC]