Title: wp-login.php redirects to&#8230;
Last modified: September 1, 2016

---

# wp-login.php redirects to…

 *  [acesolini](https://wordpress.org/support/users/acesolini/)
 * (@acesolini)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/wp-loginphp-redirects-to/)
 * Hi there,
 * I have a problem with my site [http://eventi.iwgroup.it](http://eventi.iwgroup.it).
   When I try to login ([http://eventi.iwgroup.it/wp-login.php](http://eventi.iwgroup.it/wp-login.php))
   after putting user and password, it redirects in the page “[http://eventi.iwgroup.it/wp-login.php?redirect_to=http%3A%2F%2Feventi.iwgroup.it%2Fwp-admin%2F&reauth=1&#8221](http://eventi.iwgroup.it/wp-login.php?redirect_to=http%3A%2F%2Feventi.iwgroup.it%2Fwp-admin%2F&reauth=1&#8221);.
   I have the same issue with wp-admin. I don’t know how to access the admin panel.
 * Thank you

Viewing 11 replies - 1 through 11 (of 11 total)

 *  [Walter Lopez](https://wordpress.org/support/users/lopwalj/)
 * (@lopwalj)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/wp-loginphp-redirects-to/#post-7627127)
 * Hello acesolini,
    I don’t see nothing bad here. When you enter your **username**
   and **password** and click login what error do you see?
 *  Thread Starter [acesolini](https://wordpress.org/support/users/acesolini/)
 * (@acesolini)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/wp-loginphp-redirects-to/#post-7627157)
 * If I put username and password, it redirects automatically in that link “[http://eventi.iwgroup.it/wp-login.php?redirect_to=http%3A%2F%2Feventi.iwgroup.it%2Fwp-admin%2F&reauth=1&#8221](http://eventi.iwgroup.it/wp-login.php?redirect_to=http%3A%2F%2Feventi.iwgroup.it%2Fwp-admin%2F&reauth=1&#8221);.
   The same if I do it again.
 *  [Walter Lopez](https://wordpress.org/support/users/lopwalj/)
 * (@lopwalj)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/wp-loginphp-redirects-to/#post-7627199)
 * Hello again,
    Try [manually resetting your plugins](https://codex.wordpress.org/FAQ_Troubleshooting#How_to_deactivate_all_plugins_when_not_able_to_access_the_administrative_menus.3F)(
   no Dashboard access required). If that resolves the issue, reactivate each one
   individually until you find the cause.
 *  Thread Starter [acesolini](https://wordpress.org/support/users/acesolini/)
 * (@acesolini)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/wp-loginphp-redirects-to/#post-7627202)
 * I deactivated all the plugins and the theme too. But it doesn’t still work. cleaning
   cache and cookie of course. always redirecting to that link
 *  [Walter Lopez](https://wordpress.org/support/users/lopwalj/)
 * (@lopwalj)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/wp-loginphp-redirects-to/#post-7627203)
 * Hello Acesolini, that’s weird,
    Sometimes .htaccess file can get corrupted which
   can result in internal server errors or login page refreshing error. Simply access
   your website through FTP. Backup the .htaccess file in your computer and then
   delete it from your website’s root directory. You may want to delete .htaccess
   file in wp-admin directory as well if it exist. Try logging in again. If you 
   succeed, then this means that your .htaccess file were stopping you from logging
   into WordPress. Once you are logged in, simply go to Settings >> Permalinks and
   click Save. This will generate a new .htaccess file.
 *  Thread Starter [acesolini](https://wordpress.org/support/users/acesolini/)
 * (@acesolini)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/wp-loginphp-redirects-to/#post-7627210)
 * not working.
    without htaccess, without plugins without theme
 * 🙁
 *  Thread Starter [acesolini](https://wordpress.org/support/users/acesolini/)
 * (@acesolini)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/wp-loginphp-redirects-to/#post-7627211)
 * Still not working 🙁
    without htaccess, without plugin, without theme.
 *  [Walter Lopez](https://wordpress.org/support/users/lopwalj/)
 * (@lopwalj)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/wp-loginphp-redirects-to/#post-7627251)
 * Hello again,
    Have you contacted your hosting provider? This issue is a bit weird.
 *  [luisomontano](https://wordpress.org/support/users/luisomontano/)
 * (@luisomontano)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/wp-loginphp-redirects-to/#post-8436346)
 * Hi I haved the same problem and i solved it change the DB options
 * INSERT INTO `wp_options` (`option_id`, `option_name`, `option_value`, `autoload`)
   VALUES
    (1, ‘siteurl’, ‘[http://mywebsite.mx&#8217](http://mywebsite.mx&#8217);,‘
   yes’), (2, ‘home’, ‘[http://mywebsite.mx&#8217](http://mywebsite.mx&#8217);, ‘
   yes’), (3, ‘blogname’, ‘mywebsite Power’, ‘yes’),
 *  [rafdre](https://wordpress.org/support/users/rafdre/)
 * (@rafdre)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/wp-loginphp-redirects-to/#post-9010724)
 * I had same issue when I upgraded last week my ArchLinux.
    Finally I found the
   root cause.
 * the issue itself was not redirecting but something else.
    First I enabled debugging.
   in wp-config.php I set this `define('WP_DEBUG', true);` as a result I saw what
   was the issue: Uncaught Error: Cannot create references to/from string offsets
 * I solved it quite simply by adjustment in wp-login.php
    I have replaced the line:`
   $user = wp_signon( '', $secure_cookie );` with this line `$user = wp_signon( 
   array(), $secure_cookie );`
 * it was exactly the issue described here:
    [https://core.trac.wordpress.org/attachment/ticket/37071/fix-wp-login-error.patch](https://core.trac.wordpress.org/attachment/ticket/37071/fix-wp-login-error.patch)
 *  [SalCollaziano](https://wordpress.org/support/users/salcollaziano/)
 * (@salcollaziano)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/wp-loginphp-redirects-to/#post-9164557)
 * Thank you, [@rafdre](https://wordpress.org/support/users/rafdre/). That worked
   for me as well…
 * Sal C.

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘wp-login.php redirects to…’ is closed to new replies.

## Tags

 * [db](https://wordpress.org/support/topic-tag/db/)
 * [wp_options](https://wordpress.org/support/topic-tag/wp_options/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 11 replies
 * 5 participants
 * Last reply from: [SalCollaziano](https://wordpress.org/support/users/salcollaziano/)
 * Last activity: [8 years, 11 months ago](https://wordpress.org/support/topic/wp-loginphp-redirects-to/#post-9164557)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
