I'm deploying my cakephp 2.6 website on AWS Beanstalk with this .htaccess
file
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^$ app/webroot/
RewriteRule (.*) app/webroot/$1
# Redirect força HTTPS
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [NC,L,R=307]
</IfModule>
I need to force httpS and use app/webroot as default folder.
Without https rules, it was working fine, but now I'm getting too many redirects
error.
any idea?