I was developing website on
test.example.com on a separate server. Meanwhile, the working server was
example.com at GoDaddy.
The WordPress website was working fine on both servers. But then I changed the registrar and decided to change the WordPress on
example.com inside of the
wp-config.php. If I'm entering
example.com/wp-admin - it opens without problem. However, when I try
example.com it redirects to
Can't figure out why it's happening.