diff --git a/src/.htaccess b/src/.htaccess index 34b87a8bc622a8df238f06f0644a8a74641d1579..6a66c8cecffb460998fe5d4487a116958cfd4157 100644 --- a/src/.htaccess +++ b/src/.htaccess @@ -1,3 +1,14 @@ +<IfModule mod_rewrite.c> + # SSL Redirect + + # enable Rewrite capabilities + RewriteEngine On + # check the connection is not already HTTPS + RewriteCond %{HTTPS} off + # rewrite URL with https + RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] +</IfModule> + <filesMatch "\.json$"> FileETag None <ifModule mod_headers.c>