Question

wp-admin redirects to wrong website?!

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…

Subscribe
Share

@missaglialfio The guide i followed said this …“Server Pilot installs Linux, Nginx, Apache, MySQL and PHP on our Digital Ocean droplet.” and I folloewd the guide exactly. So yes I think i do use both.

I did not use chmod, not sure what that it. Only putty was used

Hey, @nqudimat. Can you please answer my two questions? Do you use Apache? Nginx? Did you use chmod to adjust your directory permissions?

I only installed the droplet and servers yesterday, no plugins. Only installed one theme. and i used serverpilot/putty/digitalocean for everything

No plugins, I only recently set up my droplet. I actually created a new droplet because of this issue. I only installed a theme, then seconds later it happened. I followed the instructions here for installation of my droplet and host: http://www.bloggertipstricks.com/install-wordpress-digitalocean.html

I only used server pilot, putty, and digitalocean

What plugins do you have installed? A lot of the time caching plugins can mess this stuff up, in my experience.

Hello. Are your folder permissions OK? Which webserver software do you use?


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.

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