The following rule is written in htaccess:
RewriteEngine on RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php Thus, all requests are sent to index.php for processing.
There was a problem. Due to these rules, htaccess priority becomes higher and the server does not redirect requests from http to https
There are suspicions that you need to fix the line
RewriteRule ^(.*)$ index.php On something like that
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L] But how to do it correctly so that all requests are also redirected to index.php but via the https protocol?