RewriteEngine on

RewriteCond %{HTTPS} off

RewriteCond %{HTTP:X-Forwarded-Proto} !https

RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d 

RewriteRule . index.php

# to suppress AWS SDK error for using php7.4 instead of php8.1 or above
SetEnv AWS_SUPPRESS_PHP_DEPRECATION_WARNING true
