I’ve done that many times to no avail.
However, I had to restore my website from a backup earlier, and now whenever I try to access the site without http://www., it redirects it to the site as if I did, so, accidental fix. It’ll do for now.
Thanks!
I use W3 Total Cache. I had it enabled while I was using the Maintenance Mode plugin.