How Do I Stop a WordPress Site From Redirecting?

When you create a WordPress site, you give it a domain name and WordPress creates a domain name mapping for you. When you go to your site, WordPress looks for the site at the domain name you gave it.

If the site isn’t there, WordPress will look for the site at the domain name you mapped it to.

If you want to change the domain name for your WordPress site, you can do that in the Settings->General->Site Settings page. You’ll need to enter the new domain name, and then click the Update Domain button.

WordPress will take care of redirection for you.