diff --git a/.htaccess b/.htaccess index 1a48c3b..fb2ea67 100755 --- a/.htaccess +++ b/.htaccess @@ -5,6 +5,6 @@ RewriteCond %{REQUEST_FILENAME} !-d [OR] RewriteCond %{REQUEST_URI} ^/$ RewriteRule ^(.*)$ /public/$1 [L,QSA] -RewriteCond %{HTTPS} off -RewriteCond %{HTTP_HOST} !^localhost$ [NC] -RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] \ No newline at end of file +RewriteCond %{SERVER_PORT} !^443$ +RewriteCond %{REMOTE_ADDR} !^(127\.0\.0\.1|::1)$ [OR] +RewriteRule ^(.*)$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R=301] \ No newline at end of file