ip/wp-admin redirects to domain/wp-admin for no apparent reason

I recently set up a new droplet through the Ubuntu One Click Apache WP installment. Everything went hassle free, though I did initially run the Certbot upon being asked, and since I didnt want to connect the domain just yet (for demo purposes just use the IP) it was cancelled half-way through. This seems to have affected my IP setup in some way. When I visit the droplet through just the IP I can reach the site. But when I type in IP/wp-admin it redirects to Domain/wp-admin. And I havent configured anything with the domain. The SiteUrl and Home is set to the IP address. I’m suspecting it has to be Certbot that causes this? Where can I look for this domain setting?

Thanks in advance.


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

This has been solved. No idea what was the reason but after I while I could access the login page through /wp-login instead of /wp-admin. Something with that rewrite I suppose.