How to get out of WP redirect loop at login?

May 23, 2016 1.7k views

So I installed a new WP installation on a new droplet.

Logged in via the ipaddress. (ipaddress/wp-admin)

Meanwhile, I set up the domain name in cloudflare (subdomain) and pointed it to the ip.

In WP settings (still logged in with ip address), changed site settings from ipname to subdomain.

Boom! I got logged out and now it won't let me log in (redirect loop at wp-login). I don't think I copied the password even. :(

In shared hosting environments you'd change the site name settings in wp-config file. How do I go about doing it in digital ocean?

1 Answer
Have another answer? Share your knowledge.