Report this

What is the reason for this report?

wp-admin redirects to wrong website?!

Posted on July 17, 2015

Hi guys, so everytime I try to go to survivelikeaboss.com/wp-admin it redirects and takes me to a blank page and the address bar says http://survivelikeaboss.com/wp-login.php?redirect_to=http%3A%2F%2Fsurvivelikeaboss.com%2Fwp-admin%2F&reauth=1

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?

Thanks…



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!

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.

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:

define('WP_HOME','http://survivelikeaboss.com');
define('WP_SITEURL','http://survivelikeaboss.com');

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 :)

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.