Site does not work after restored backup from cPanel

After host restored the site from backup, Defender kept locking me out. After disabling Defender, the site would go into a redirect loop. The site was suppose to be setup in a subfolder (as in https://codex.wordpress.org/Giving_WordPress_Its_Own_Directory) but since restoring the site from backup, this only causes 500 Internal Server errors or redirect loops.