I disabled redirection from non www to www and everything worked.
For anyone reading my answer, if you use magento don't enable redirection. Magento sucks already, it's the worst piece of shit software ever written, every small configuration you do could break it. If you don't believe me go to my profile and look around.
- Don't change domain unless you must
- Don't upgrade ever, it won't work if you have extensions or custom theme
- Don't change server
- Don't expect help from anyone, they might help but it's not guarenteed, it's not their fault, it's your fault because you picked magneto and magneto sucks
For the last couple issues, I asked here, and on stackoverflow, and reddit and webkul (who are magento experts working for my client) and mageworx and yesterday I paid $100 for AWS support to fix the issues. No one could, I ended up fixing them. FUCK magento,