Change url site.it/wordpress

Can you try by adding the following rules at the end of your .htaccess file?

RewriteEngine On
RewriteCond %{HTTP_HOST} ^example.com/wordpress$ [OR]
RewriteCond %{HTTP_HOST} ^www.example.com/wordpress$
RewriteRule (.*)$ https://example.com/$1 [R=301,L]

Replace example.com with your website url.

Even if it works and doesn’t cause an infinite redirect, this is not the correct solution. I’ll try and take a better look later.