http to https stuck in infinite loop

backup the htaccess file and delete it..

clear the browser cache..

go to your database yourprefix_options table

change the siteurl and home with https://example.com/blog

i am assuming you are running wordpress on the subdirectory called blog if not the case change the url to https://example.com and open the wp admin with https link

go to settings permalink and click on save changes..

and as you have WP Smush & WP Super Cache installed do clear all the cache first to avoid any issues.

I hope it’ll solve your issue

error code: 523