Well i know this looks pretty easy , but i have been working on it from a couple of hours now . but looks bit strange , there are quite a few solutions on having http to https permanent redirect , but are not working .
I have a Yii application , version 1.1 which is quite old now , but it is built on it and want application to be on permanent https .
and for that .htaccess i am using is :
RewriteEngine on
# manual change the url base
RewriteBase /
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.example.com/$1 [R,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php
this is what is recommended on quite a few SO answers ,
But for me they are giving net::ERR_TOO_MANY_REDIRECTS
and then followed by 503 (Service Unavailable: Back-end server is at capacity) as application is on aws .
I am not much into regex thing , so can anyone help me with it or put me in right direction .
cheers .