Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Redirect login issue into all my localhost WordPress sites

It happens on localhost for all my sites when I login I write the correct username and password but I get no error and the page just refreshes and won't let me into the WordPress dashboard.

For example I write:

http://localhost/business_theme/wp-admin

And I get:

http://localhost/business_theme/wp-login.php?redirect_to=http%3A%2F%2Flocalhost%2Fbusiness_theme%2Fwp-admin%2F&reauth=1

I also tried deleting the characters from ?redirect..., cleaning cookies but still it redirects.

Any ideas on how I can login to my WordPress sites again on localhost?

like image 398
Light_Warrior Avatar asked Jan 21 '26 05:01

Light_Warrior


1 Answers

If your local site is the direct-copy of the site online, then this is just the case. WordPress redirects the page because it is trying to let you access the guessed-very-correct URL as the one you installed WordPress.

Open your database controller, find the table wp_options. Find the columns with option_name named site url and home, change the option_value to the corresponding URL in your local environment.

If not, there must be something wrong internal with your WordPress, turn on the debugging mode, and this will allow you more hint on this.

like image 126
Haotian Liu Avatar answered Jan 23 '26 19:01

Haotian Liu



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!