wp-admin redirects to wrong website?!

Hi guys, so everytime I try to go to it redirects and takes me to a blank page and the address bar says

I made sure I made the URL in the WP-admin (While it still worked) as the homepage url. But I can’t access wp-admin

Any ideas why?


Show comments

Submit an answer

This textbox defaults to using Markdown to format your answer.

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

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

According to the WordPress Codex, this can happen for a large number of reasons. A large number of the fixes assume you have FTP access, so I’ll assume you have that (if not you can use nano in SSH as well).

Edit wp-config.php and add these lines:


See if you can log in.

If you still can’t login, you should try disabling all your plugins. Temporarily rename the plugins folder to something else, like old_plugins or something, and see if you can login.

Hopefully that helps, otherwise this webpage may prove useful :)