I tried to move my wordpress website from a from an old domain to a new domain, I also changed the hosting provider.
Everything is working perfect, I went to the database and changed everything that contained the old domain to the new one.
The website works except when you visit the main page, it redirects you to the old domain. I'v been now 4 hours with this problem and I can't fix it and I have no idea why its happening, it only happends when you visit the main page, with everything else it works perfectly.
I also tried of adding this lines to the wp-cofig.php file:
but it didn't fix the problem.
Im not sure if this goes here,