Update htaccess for non-ssl
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user