ahrefs site auditing, reports a redirect chain that I cant't see. Surely, only the first ruleset should be activated. What's causing this ?
domain
http://www.example.software/
Redirect chain URLs
https://www.example.software/
301
https://example.software/
200
my .htaccess is
RewriteEngine On
#software
RewriteCond %{HTTPS} !=on
RewriteCond %{HTTP_HOST} ^(www\.)?example\.software$ [NC]
RewriteRule ^(.*)$ https://example.software%{REQUEST_URI} [R=301,L,QSA]
#online
RewriteCond %{HTTPS} !=on
RewriteCond %{HTTP_HOST} ^(www\.)?example\.online$ [NC]
RewriteRule ^(.*)$ https://example.online%{REQUEST_URI} [R=301,L,QSA]
RewriteCond %{HTTP_HOST} ^example\.online$ [NC]
RewriteRule ^(.*)$ https://other.example.software%{REQUEST_URI} [L,QSA]
#app
RewriteCond %{HTTPS} !=on
RewriteCond %{HTTP_HOST} ^(www\.)?example\.app$ [NC]
RewriteRule ^(.*)$ https://example.app%{REQUEST_URI} [R=301,L,QSA]
RewriteCond %{HTTP_HOST} ^example\.app$ [NC]
RewriteRule ^(.*)$ https://apps.example.software%{REQUEST_URI} [L,QSA]
# remove www from https
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ https://%1%{REQUEST_URI} [R=301,QSA,NC,L]
#force html extn
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.html -f
RewriteRule ^(.*)$ $1.html
#For existing publishing
RewriteCond %{HTTP_HOST} ^example.software$ [NC]
RewriteRule ^(download)/([^/]+)$ https://example.software?mode=file&name=$2 [L]
http://www.example.software/
is being redirected tohttps://www.example.software/
? (Which isn't possible with the directives as posted.) FWIW I don't see a "redirect chain" in the directives you've posted, except for the "other" hostnames:www.example.online
andwww.example.app
when requested over HTTP.