I found the problem in the .htaccess file
RewriteCond% {HTTP_HOST}! ^ Www \.
RewriteRule ^ (. *) $ Https: //www.% {HTTP_HOST}% {REQUEST_URI} [L, R = 301]
RewriteCond% {HTTPS} off
RewriteRule ^ (. *) $ Https: //% {HTTP_HOST}% {REQUEST_URI} [L, R = 301]