# Redirection to HTTPS RewriteCond %{SERVER_PORT} ^80$ RewriteRule ^(.*)$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R]
This rule is in the wrong place. It needs to go before the # BEGIN WordPress
comment marker. ie. Before the WordPress front-controller.
Currently, this will result in a redirect to /index.php
if requesting HTTP.
# BEGIN SecuPress hotlink <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_FILENAME} -f RewriteCond %{REQUEST_FILENAME} \.(jpg|jpeg|png|gif)$ [NC] </IfModule> # END SecuPress
And this block is incomplete/wrong. Unless you know the missing directives, this block must be deleted.
Fortunately, it’s “only” making the next RewriteRule
(in the WordPress code block) superfluous, but it could potentially break your site.