this is my file i have in Laravel 5
Options -MultiViews
#redirect www to website root
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
#force https
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
when entering my domain.com it should redirect me to https://domain.com it does but it gives me an error ERR_TOO_MANY_REDIRECTS
This is the .htaccess I use to force ssl in a Laravel project (Laravel has nothing to do with redirects though).