Update htaccess for non-ssl
This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
RewriteEngine On
|
RewriteEngine On
|
||||||
|
|
||||||
# Force HTTPS (redirect HTTP to HTTPS)
|
# Force HTTPS (redirect HTTP to HTTPS)
|
||||||
RewriteCond %{HTTPS} off
|
#RewriteCond %{HTTPS} off
|
||||||
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
|
#RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
|
||||||
|
|
||||||
# Redirect www to non-www (if you want to remove www)
|
# Redirect www to non-www (if you want to remove www)
|
||||||
RewriteCond %{HTTP_HOST} ^www\.(example\.com)$ [NC]
|
RewriteCond %{HTTP_HOST} ^www\.(example\.com)$ [NC]
|
||||||
|
|||||||
Reference in New Issue
Block a user