Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
Coppa WPB
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

Come risolvere il problema di aggiornamento e reindirizzamento della pagina di accesso di WordPress

Quando cerchiamo di accedere ai nostri siti web WordPress, a volte la pagina di login si aggiorna e si reindirizza continuamente, impedendoci di accedere all’area di amministrazione di WordPress.

Se state sperimentando questo problema, non siete i soli. Il problema dell’aggiornamento e del reindirizzamento della pagina di login di WordPress è comune e frustra molti proprietari di siti WordPress. Detto questo, abbiamo testato diversi metodi collaudati per risolvere il problema.

In questa guida completa, vi mostreremo come risolvere il problema del refresh e del reindirizzamento della pagina di login di WordPress. Immergiamoci e torniamo alla dashboard di WordPress per riprendere il controllo del vostro sito web!

Fixing the login page redirect and refresh issue in WordPress

Cosa causa il problema di aggiornamento e reindirizzamento della pagina di login in WordPress?

L’errore di aggiornamento e reindirizzamento della pagina di login di WordPress (chiamato anche loop di reindirizzamento del login di WordPress) è solitamente causato da impostazioni errate dell’URL di WordPress o dalla mancata impostazione dei cookie di login.

Normalmente, quando si accede, WordPress convalida il nome utente e la password e poi imposta un cookie di accesso nel browser. Successivamente, l’utente viene reindirizzato alla dashboard di WordPress.

Se WordPress non riesce a impostare correttamente il cookie di accesso o l’URL dell’area di amministrazione di WordPress non è corretto, si verrà reindirizzati alla schermata di accesso anziché alla dashboard di amministrazione.

Login page redirect issue in WordPress

I problemi di accesso possono essere causati anche da diversi errori di WordPress, come l’errore di connessione al database, l’errore interno del server o la schermata bianca della morte.

Con queste premesse, cerchiamo di risolvere il problema del reindirizzamento e dell’aggiornamento della pagina di login di WordPress. Potete utilizzare questi collegamenti rapidi per passare a un metodo specifico:

Nota: se volete provare i passaggi avanzati di questo tutorial su WordPress, create prima un backup del vostro sito. Consultate la nostra guida su come creare manualmente un backup del database di WordPress.

Metodo 1: Cancellare i cookie per risolvere i problemi di accesso

WordPress utilizza i cookie per l’autenticazione del login, quindi il primo passo per risolvere i problemi di login di WordPress è il più semplice. È necessario cancellare i cookie e la cache del browser.

In Google Chrome, è sufficiente fare clic sul menu delle impostazioni del browser e poi selezionare Altri strumenti ” Cancella dati di navigazione.

Clear browsing data in Google Chrome

Si aprirà la pagina delle impostazioni di Chrome con un popup “Cancella dati di navigazione” visualizzato sullo schermo.

Da qui è necessario selezionare le opzioni “Cancella cookie e altri dati del sito” e “Immagini e file nella cache”.

Clear cookies and cache in Google chrome

Quindi, fate clic sul pulsante “Cancella dati” e Google Chrome cancellerà la cache del browser.

Assicuratevi inoltre che il vostro browser abbia i cookie abilitati. Dopo aver fatto ciò, riavviare il browser e provare ad accedere. Questo dovrebbe risolvere il problema per la maggior parte delle persone.

Abbiamo una guida completa con schermate che mostrano come cancellare la cache e i cookie in tutti i principali browser.

Metodo 2: Aggiornare le impostazioni degli URL di WordPress

WordPress è dotato di impostazioni per l’URL del vostro sito web e per l’URL della vostra installazione di WordPress.

Se si ha accesso all’area di amministrazione di WordPress, si può vedere questa opzione nella pagina Impostazioni ” Generale”.

WordPress URL settings

Se questi URL non sono corretti, WordPress vi reindirizzerà alla pagina di accesso.

Poiché non è possibile accedere all’area di amministrazione di WordPress, è necessario modificare il file wp-config.php per risolvere il problema.

Il file wp-config.php è un file speciale di WordPress che contiene le impostazioni importanti di WordPress. Potete accedervi utilizzando un client FTP o tramite l’applicazione File Manager nella dashboard del vostro account di hosting WordPress.

Editing wp-config.php file via FTP

Il file wp-config.php si trova nella cartella principale del sito. Basta modificare il file e incollare le seguenti righe di codice appena prima di quella che dice: "È tutto, smettete di modificare! Buona pubblicazione".

define('WP_HOME','https://www.example.com');
define('WP_SITEURL','https://www.example.com');

Non dimenticate di sostituire “example.com” con il vostro nome di dominio.

Quindi, salvare le modifiche e caricare il file sul proprio sito web.

Ora potete visitare il vostro sito web WordPress e provare ad accedere. Si spera che questo abbia risolto il problema. Se così non fosse, continuate a leggere per ulteriori passaggi di risoluzione dei problemi.

Metodo 3: Eliminare il file .htaccess in WordPress

A volte, il file .htaccess può essere danneggiato, causando errori interni al server o l’errore di aggiornamento della pagina di login.

È sufficiente accedere al vostro sito web utilizzando un client FTP o tramite l’applicazione File Manager nella dashboard del vostro provider di hosting.

Una volta collegati, individuare il file .htaccess nella directory principale del sito web e scaricarlo sul computer come backup.

Se non riuscite a trovare il vostro file .htaccess, questa guida sul perché il vostro file .htaccess potrebbe essere mancante può aiutarvi.

Delete .htaccess file in WordPress

Dopodiché, cancellate il file .htaccess dal vostro sito web.

Quindi, aprire la cartella wp-admin e, se c’è un file .htaccess, cancellare anche quello.

Ora potete provare ad accedere al vostro sito web WordPress. Se ci riuscite, significa che il file .htaccess vi impediva di accedere a WordPress.

Una volta effettuato l’accesso, basta andare alla pagina Impostazioni ” Permalinks nel pannello di amministrazione di WordPress e fare clic sul pulsante “Salva” senza apportare alcuna modifica. In questo modo verrà generato un nuovo file .htaccess per il vostro sito web.

Metodo 4: Disattivare i plugin

A volte, i plugin di WordPress possono causare questo problema, soprattutto se c’è un conflitto tra due plugin.

Per disattivare facilmente tutti i plugin di WordPress, collegatevi al vostro sito web utilizzando un client FTP o tramite l’applicazione File Manager nella dashboard del vostro account di web hosting.

Una volta collegati, andate nella cartella /wp-content/. Al suo interno, vedrete una cartella denominata “plugins”. È qui che WordPress installa tutti i vostri plugin.

Rename plugins folder to deactivate all plugins

È sufficiente rinominare la cartella dei plugin in “plugins_backup”. In questo modo verranno disattivati tutti i plugin di WordPress installati sul vostro sito web.

Abbiamo anche un tutorial dettagliato su come disattivare tutti i plugin di WordPress quando l’amministrazione di WordPress è inaccessibile.

Una volta disattivati tutti i plugin, provate ad accedere al vostro sito WordPress. Se ci riuscite, significa che il problema era causato da uno dei vostri plugin.

Metodo 5: Tornare al tema predefinito

I temi di WordPress possono causare conflitti anche dopo l’aggiornamento a una versione più recente di WordPress o del tema stesso. Per scoprire se il problema è causato dal tema, è necessario disattivarlo.

Il processo è simile alla disattivazione dei plugin. Collegatevi al vostro sito web utilizzando un client FTP. Quindi, si deve andare nella directory /wp-content/themes/ e rinominare la directory del tema corrente in “themes_backup”.

Una volta fatto questo, provare ad accedere di nuovo. Se ci si riesce, significa che il problema era causato dal tema.

Ora è possibile reinstallare una nuova copia del tema per verificare se il problema si risolve. Se il problema si ripresenta, è necessario contattare l’assistenza del tema o passare a un tema WordPress diverso.

Metodo 6: Reinstallare il nucleo di WordPress

In rari casi, il problema della ricarica persistente della pagina di accesso potrebbe essere causato da file corrotti del nucleo di WordPress.

Questi file fondamentali sono la base del sito web WordPress e gestiscono le funzionalità essenziali. Se questi file si danneggiano o vengono sovrascritti con codice non corretto, possono verificarsi vari errori, tra cui problemi di accesso.

Innanzitutto, visitate WordPress.org e scaricate l’ultima versione del software. Una volta scaricato, decomprimere il file sul computer. Verrà creata una cartella denominata “wordpress” contenente tutti i file necessari per la reinstallazione.

WordPress files

Successivamente, è necessario collegarsi al sito web utilizzando un client FTP o il file manager fornito dal fornitore di hosting.

Una volta collegati, navigare nella cartella principale del sito web. Si tratta della directory principale che contiene cartelle come wp-admin, wp-content e wp-includes.

Upload core WordPress files

A questo punto, prendete tutti i file dalla cartella “wordpress” sul vostro computer e caricateli nella directory principale del vostro sito web.

Il client FTP chiederà di confermare la sovrascrittura di eventuali file di base esistenti.

Poiché state eliminando i file core di WordPress danneggiati e li state sostituendo con altri nuovi, scegliete “Sovrascrivi” e selezionate l’opzione “Usa sempre questa azione” per evitare di dover confermare ogni singolo file.

Overwrite core files

Infine, fate clic su “OK” per avviare il processo di uploader. Il vostro client FTP sostituirà i file principali di WordPress sul vostro sito web con quelli freschi del vostro computer.

Una volta completato l’uploader, visitate il sito web per vedere se l’errore è corretto. Se il problema di accesso è causato da un file core corrotto o da un malware, il messaggio di errore dovrebbe essere sparito e si dovrebbe poter accedere con successo.

Video tutorial

Se avete bisogno di istruzioni visive, guardate il video qui sotto.

Subscribe to WPBeginner

Cosa fare se non si riesce a correggere il problema del reindirizzamento dell’accesso a WordPress

Se avete provato di tutto, dal cancellare i cookie del browser alla disattivazione di temi e plugin, ma il problema persiste, potete provare a chiedere supporto alla comunità di WordPress.

Gli utenti di gruppi come il gruppo Facebook di WPBeginner Engage potrebbero aver riscontrato il vostro stesso problema e potrebbero fornirvi indicazioni su cosa fare per risolvere i problemi della pagina di accesso.

The WPBeginner Engage Facebook group

A parte questo, potete rivolgervi a soluzioni di assistenza WordPress come WPBeginner Pro Services. Offriamo un servizio di assistenza WordPress d’emergenza, in cui gli esperti possono individuare cosa sta succedendo al vostro sito web e risolvere il problema alla radice.

Potete anche assumere i nostri servizi di manutenzione di WordPress per evitare che problemi come malware, tempi di inattività elevati e WordPress obsoleto colpiscano il vostro sito web in primo luogo.

WPBeginner Pro Services

Non esitate a prenotare un appuntamento con il nostro team oggi stesso per vedere cosa possiamo fare per sistemare il vostro sito web.

Learn More WordPress Soluzioni per la risoluzione dei problemi

Avete riscontrato altri errori comuni di WordPress e avete bisogno di trovare un modo per correggerli? Ecco altri articoli che potete consultare:

Speriamo che questo articolo vi abbia aiutato a risolvere il problema del refresh e del reindirizzamento della pagina di login di WordPress. Potreste anche voler consultare la nostra guida completa alla risoluzione dei problemi di WordPress o dare un’occhiata alla nostra classifica dei migliori plugin e strumenti di WordPress per far crescere il vostro sito.

Se questo articolo vi è piaciuto, iscrivetevi al nostro canale YouTube per le esercitazioni video su WordPress. Potete trovarci anche su Twitter e Facebook.

Divulgazione: I nostri contenuti sono sostenuti dai lettori. Ciò significa che se cliccate su alcuni dei nostri link, potremmo guadagnare una commissione. Vedi come WPBeginner è finanziato , perché è importante e come puoi sostenerci. Ecco il nostro processo editoriale .

Avatar

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi with over 16 years of experience in WordPress, Web Hosting, eCommerce, SEO, and Marketing. Started in 2009, WPBeginner is now the largest free WordPress resource site in the industry and is often referred to as the Wikipedia for WordPress.

Il kit di strumenti WordPress definitivo

Ottenete l'accesso gratuito al nostro kit di strumenti - una raccolta di prodotti e risorse relative a WordPress che ogni professionista dovrebbe avere!

Reader Interactions

354 commentiLascia una risposta

  1. Warren Ganye

    I first cleared the cache and cookies. Initially it didn’t work, i couldnt stop the log in loop. This was because i had redirected the url to a sub directory using .htaccess.

    I then had to delete the .htaccess file i had updated and created a new copy of it.

    After that i was able to log in my wp-admin. Then i went to settings to customise the permalinks settings tag base to the name of the subdirectory i had placed the wordpress installation so that my other pages besides the home page could work. :) Hope it helps

  2. Gavin

    I’m able to log into WP Admin and then go to visit site and edit and browse from there on Internet Explorer. However on both google chrome and Safari, when I hit “Visit Site” it just takes me back to the admin login page again.. and again etc. I’ve tried everything and I’m just not understanding why it’s letting me get on with life in Internet Explorer but not Google Chrome/Safari. If someone replies to this, thanks for thought and time in advance!

    • Andy V

      Gavin —

      Exactly problem i am having. What did you do to resolve it?

      Thanks,
      Andy

  3. Gilles

    Hi,
    On my side, the limitation came from a MySQL limitation of 100 Mb in my formula (which I did not know). After having reduced it, I could have access again to WP-admin.

  4. Titus Raj

    All above did not work for me.

    I migrated from 5.6 php to 5.4php hosting

    I then changed the new hosting to 5.6php then did migrate again, it worked.

  5. Shahkar

    Hi. I tested every things but not worked for me.
    I wanted to create a backup from DirectAdmin but it appears an error in between backing up. It says the wp_usermeta is crashed and repair is not helpful for it.
    So I opened the SSH and after login to server, I writed:
    cd /var/lib/mysql/[DATABASE NAME]
    and then:
    myisamchk -r -v -f wp_usermeta
    So this table is fixed and my users can login after this.
    If you haven’t access to SSH you should contact your hosting support.
    I hope it will be useful

  6. Ather

    Hey there! I have an active theme named ‘church’ in which i’m customizing a website. When i install plugins and make changes over the website, it works pretty fine. but then when i logout to my wordpress account, the changes made are reverted back. Please help me out!
    Thanks in advance

  7. Kingsley

    After entering my login details, wp will reload and it wont redirect me to my dashboard. I then read through your guidelines. I tried everything and it was not working for me. The worst is that when I got to the step of delete htaccess, i did it and i started receiving 404 Not Found error on my login page. Please assist

  8. Jason

    One-man-show, do it yourself-er here… non computer wiz, banging my head against the wall for 4 days trying to fix this problem. Tried everything on this list, messed with my .htaccess and wp-config files a hundred different ways (which deleting all the .htaccess files worked for a second, until I resaved by permalink settings). . Also of importance was that I had used been using cloudflare for CDN purposes. Lastly, my problems coincided with switching hosting. So after trying everything here and about 1.5 hours on the phone with tech support at my hosting, it ended up being that I had a conflict with the www CNAME record. I serve my site as www and apparently the CNAME record with my new (actually original) host was still pointing at cloud flare. I “paused” my site with cloud flare, and updated the www CNAME record in my web host’s cPanel’s Advanced DNS Zone Editor by removing the (mynamerserver.cloudflare) from the end of themysite.mynameserver.cloudflare.com. Now the www CNAME is simply named mysite.com. Viola! Logged back in and all is good. Phew! On to the next fire, which is now that some of my navigation links on my site are 404-ing…but that’s for another thread. Thanks for this page and the active nature of this site, has already helped me fix/learn a ton.
    Cheers!

  9. Craig Hodge

    I have read through the entire article, and every single comment, tried every idea that has been suggested, and about a dozen others, and nothing works. I am still unable to log in to wp-admin.

  10. Peter Vukovic

    Another possibility is that your disk space is full. Wordpress login will fail silently if this is the case.

  11. Vinny O'Hare

    I had this issue and instead of going the ftp route I logged into my managewp account and logged in and resaved the permalinks and I was good to go.

  12. Baggy

    I found that the file permissions were not correct (group had write access).

  13. stephen miller

    Since installing SSL 10 days ago we’re unable to log in to the WordPress blog (all the WP files sit in that directory). The login credentials are accepted but the login page redirects back to itself with fields empty, We’ve tried everything- including everything mentioned in this article:

    (Below the last of recommended fixes. The ‘x’ means they were tried to no effect)

    x Clear Cookies to Resolve Login Issues

    x Deactivate All Plugins

    (x*) Revert Back to the Default Theme (there was no problem following a theme change 2 months ago)

    x Delete .htaccess File

    x Update Site URL (add these to wp-config.php)
    define(‘WP_HOME’,’http://example.com’);
    define(‘WP_SITEURL’,’http://example.com’);
    (Did those with no effect)

    We’re at our wits end with this. Would really appreciate some help. Remember we can only access the ftp files, not the WP admin area.
    If nothing else, can we make a new blog and transfer several years of critical posts to the new one? Or do a re-install of WP via FTP? Please help!

    • WPBeginner Support

      Hi Stephen,

      After successfully installing SSL, your WordPress site should be using https instead of http. Please try adding these lines to wp-config.php file

      define('WP_HOME','https://example.com');
      define('WP_SITEURL','https://example.com');
      

      Admin

  14. vishal

    after clicking the lost password in wordpress based my website still i am stuck over in the same page please help me with the same

  15. Pat Parker

    I increased the memory in wp-config and that worked.
    define(‘WP_MEMORY_LIMIT’, ‘512M’);

  16. Connor G

    Hi,

    I have the same issue you outline in this post, however I’m also getting a “This site is not Secure” flag from Google which I was able to bypass through the ‘Advanced Options’ under the warning. I’ve tried all of the above with no luck. Even adjusting my website url in the PHPmyadmin tool hasn’t stopped me from being redirected.

    Is there something else that has gone wrong here further than what you describe above, or is the Google security warning common with this issue?

    Thanks a ton!

  17. Lena

    Hello there, I tried every trick and my wp-admin page still tell me “Sorry, you are not allowed to access this page.” I try loging in through wp-login.php and I see a login page but it redirects me to our homepage. I tried deactivating plugins, themes, and unblocking my IP through wp-config.php with no luck. Any tips would be greatly appreciated! Thanks!

    • ATRYNA

      We have same problem, but after a few minutes and keep trying to loging I can access my wp-admin and the dashboard running normally agan.

  18. Janice Roth

    Hi Wordpress experts,
    Would really appreciate a voice to calm my panic. My head is spinning. I am not a web expert, just a person setting up my own business site. My site is set up on Wordpress, on a temp URL while I’m still building it. Using RT them 19. Been using it no problem for a while, but now I can’t access the site using my usual user name and password. Keeps saying not valid”

    Also, above the log in area there are a whole lot of lines that look like this.

    Only 1 looks like this
    Warning: ksort() expects parameter 1 to be array, object given in /home/content/html/wp-content/plugins/bbpress/includes/core/template-functions.php on line 316

    About 20 lines look like this
    Warning: Cannot modify header information – headers already sent by (output started at /home/content/html/wp-content/plugins/bbpress/includes/core/template-functions.php:316) in /home/content/html/wp-login.php on line 394

  19. barbara

    i can’t log in. wordpress won’t accept my name, my password. won’t allow me to create a new reader account under a different address or name. i am completely locked out and have lost hundreds of feeds. i am NOT a blogger – only a follower, and wordpress seems only interested in bloggers, with little or no support for followers. i have tried changing my password several times and even when brand-new, it will not be accepted. i have called the phone number and have gotten either no answer or a message telling me that the number is no longer in service. i am so frustrated i just want my feeds back so i can export them to someplace else.

  20. Sutapa Chatterjee

    I am not being able to log in at all, how do I even change the URL settings ?

  21. Ryan

    I did the last suggestion where you enter in
    define(‘WP_HOME’,’http://example.com’);
    define(‘WP_SITEURL’,’http://example.com’);

    Took a bit to figure out how to do it but it worked perfectly. Thanks!

    (BTW you can just do it through cpanel – file manager – and edit the code.)

  22. Kas

    I solved it by going to the php my admin and wp_users by changing the username to something else (same for nickname etc..) and saved. Logged in again with the new name and same password and it worked.

  23. Nelson Mulama

    I had the same problem on multiple migrated websites and none of the above stated solutions seemed to work.

    My problem arises from the fact that each time I do the migration, I create a totally new Word Press users who don’t have any posts or pages assigned to them.

    The thing with the wp-login.php (for my case) is it was redirecting me to the homepage as I didn’t have any content assigned to the user.

    Solution, went to the wp-posts table and assigned one article to the new user using userID (you will find this in your wp-users table)

    solved the problem

  24. David Rawlins

    Thanks very much. For me it was a plugin that messed things up. Now sorted

    • Angelo Saponaro

      Hi, Can I ask you to come has Solved? Not one of the solutions above me I have helped.
      Thank you

  25. Munna Hossain

    It is really a common error of WordPress. I also faced this problem. But now I am Ok. All these options have not Worked. Thanks for sharing.

    • Angelo Saponaro

      Hi, Can I ask you to come has Solved? Not one of the solutions above me I have helped.
      Thank you

  26. peter

    The redirect problem occurred for me after the DNS DDoS attack on Oct 21, 2016.

    I found a simple solution by including an admin page in the login path such as:

    yourdomain.com/wp-admin/nav-menus.php

    Login with this directed right to the menu panel.
    After logout, I was able to login normally with just /wp-admin.

    Don’t know why, but it worked!

    • Chris

      Hey Peter, this happens to several of my websites as well. I normally go to wp-admin/theme-editor.php because it won’t let me login through wp-admin. When I click ‘Log In’, it just refreshes the login page.

      • Chris

        and I’ve tried the options above, it still didn’t solve the issue.

    • Lynn Spivey

      Thanks Peter!
      Thanks so much for posting the link – my computer experience involves FaceBook and Amazon Prime, so I needed someone to tell me to type this and go here! Telling me to paste a code into something that I can’t even figure out how to access wasn’t working for me! I have spent a couple of days trying to log in and was just about to walk away for good! You saved the day, seriously. Hero! (:

  27. Renee Blundon

    THANK YOU! This finally finally finally resolved the login and logout issues with my site. I owe you guys big time!! What did the trick was editing the wp-config file with these two lines:

    define(‘WP_HOME’,’http://example.com’);
    define(‘WP_SITEURL’,’http://example.com’);

    Thanks again, you guys are amazing!

    -Renee

  28. Niall Guerin

    You are a superstar. Was really getting frustrated with other tips and guides. I followed your tips, 1 by 1. Nothing worked until the last one using the 2 define statements. In my case, I did a DNS update 72 hours ago. The DNS propagated to most locations within 12-24 hours, but the wp-admin completely failed. I used md5/password update via phpadmin from your other blog tip (also excellently written and illustrated) and was still having no joy so followed this guide as second step. As soon as I did it, the password invalid message then displayed after a test login. Then the password reset link started working also which did not work after all prior error checks. The reset mail was received and worked fine and all stable again. Really really appreciate you putting this together as you just sorted me out big time. Thanks. Niall

  29. Adeolu Adeyemi

    Non of the above solutions worked for me. I had to check the php error log, and I saw this

    WordPress database error Duplicate entry ‘0’ for key ‘PRIMARY’ for query INSERT INTO `wp_usermeta` (`user_id`, `meta_key`, `meta_value`) VALUES (4, ‘session_tokens’, ‘a:1:{s:64:\”235054a04c368610fe278c9aa25e46f411483bbc6b9dd52fa4574b3ba4d5ecac\”;a:4:{s:10:\”expiration\”;i:1476532105;s:2:\”ip\”;s:3:\”::1\”;s:2:\”ua\”;s:109:\”Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36\”;s:5:\”login\”;i:1476359305;}}’) made by wp_signon, wp_set_auth_cookie, WP_Session_Tokens->create, WP_Session_Tokens->update, WP_User_Meta_Session_Tokens->update_session, WP_User_Meta_Session_Tokens->update_sessions, update_user_meta, update_metadata, add_metadata

    Querying the database to remove the umeta_id with id 0, did it for me.

    • Amin

      you are right bro i have same problem too, but i didn’t get how resolve it u.u

    • Sommie Njoku

      Yup. This did the trick for me!
      Go to your database wp_usermeta and change the umeta_id 0 to something else.

  30. Miguel

    Last one worked forme
    Thanksss

  31. Dami3n

    I run around 10 websites and never came across this problem until today. I closed my WordPress site by mistakes whilst doing a long edit. Not sure if this was the issue but on opening Firefox again an trying to login to WordPress i kept being redirected. I noticed i still got an error for logging in incorrectly.

    I set off to work to try and find a solution. Renamed theme folders plugins got rid of cache. Nothing worked. I decided this has to be a problem with the .htacess file. Now the problem you have is most sites that you go through a cpanel will not show this file. So grab something like filezilla. To find it. I re uploaded the exact same one to the server and it’s all back to normal must have been a brain fart…. just seems odd that exact same file has fixed the problem.

    [edit sorry]

  32. Craig

    Great – had this problem for a few days where I sometimes couldn’t log-in, but mostly when I went to view site when I WAS logged in, I’d see the maintenance mode page, as if I wasn’t logged in! Defined the site in WP-Config and problem sorted.

    Thanks!

  33. Bhavya

    Hello,

    My Wordpress Dashboard => Home( Edit Page) still loading what we do?

    if i check in view page it shows my website(no errors in this page).

    can anyone Please Suggest me.

  34. Richard Taylor

    Deactivating Plugins worked for me … thank you so much

  35. Gareth

    Deleting the .htaccess file solved my issue!

    Thanks guys

  36. Ocean

    Defining the site URL worked for me! Thanks a ton!

  37. Tejpal Choudhary

    Last one “update site URL” worked for me .

    Thanks from the bottom of the heart.

  38. Dave

    I had this problem when a site was built a long time ago without using wordpress secret-keys in the wp-config.php file.

    When I added the secret keys to wp-config.php as part of upgrading the site’s security I was not able to login (even after trying all of the above fixes) and it seemed that the login page was just refreshing instead of bringing me to the wordpress dashboard.

    To solve the login-refreshing problem, I temporarily went back to my old wp-config.php file without the secret-keys and was able to log in.

  39. Kjetil

    Last method worked – BUT the Settings > General > Wordpress URL and Website URL are greyed out/ impossible to change + if I remove those two lines from wp-config.php the problem returns.
    ANY WAY to change the URL settings – and make them remain correct?
    Thanks
    PS I also tried to edit the database’s options table (and enter the correct site url in the first line there), but no luck.

  40. Kathy Porter

    Chrome > Settings > Advanced > Reset Settings

    Chrome finally works like it’s supposed to again! Yay!

    • Joana Ashford

      Yay this worked for me :-)

  41. Steve

    LAST ONE WORKED! Huzzah!

  42. Debaiss

    Most of the time it is the plugins that creates this problem.

  43. Kathy

    I tried everything, too, and nothing worked. The problem only exists in Chrome for me.

    • Kathy

      Finally it’s fixed! I reset Chrome.

  44. Julio Fermin

    I trying everything and don’t work permanently. What I can do? I am using hostinger and a godaddy domain.

  45. Sagun Khadka

    The last method worked for me :) Thanks

  46. Kingsley Iyke

    Regarding wp-admin login not coming up, I have done all of the above suggestions but non could fix the problem. Can anyone help with new solution. I`ll appreciate. Kingsley Iyke

    • Van Hallman

      I fixed my issue by removing the top 2 lines in my wpconfig.php which were referencing a non existent W# Total cache install.

  47. Janice

    Excellent tutorial. Easy to figure out and best of all, following the instructions enabled me to solve my problem quickly!

    Turns out a plug-in was the culprit so by renaming the plugin folder I was able to deactivate them all and sign in. (Good thing to know for the future.) I then added them back one by one to determine which plugin was causing the problem.

    One thing … please don’t laugh … you have to double click on the plugin folder name to change it. I was right clicking on it to try to rename it (as you do in Windows file explorer) … minor detail I forgot about.

  48. Joni

    Any tips if none of these work? Only have the redirect issue when trying to login to Admin. Site seems fine for viewing for everyone. Just the login issue to Dashboard.

    • Georg

      Jepp, the same problem like before… I’ve tried all the tricks, but nothing works…
      Please help…
      All the other sites with the same WP version still running best – also the login. Only one of the sites (at another provider) doesn’t work (only the login, I mean).

      Sorry for my poor english…

      All the best
      Georg

      • Georg

        Hello,

        I’ve found the problem: One or more of three of my plugins caused an data-overflow of one of the fields in the database.
        I’ve installed the problematic plugins:
        – Simple login log
        – Limit Login Attempts
        – Rich Counter

        The database has a total limit of 1024MB… but it used 1288MB and this caused the problem.
        After erasing the content of the database-fields of all of the three plugins and reconfiguring the settings of them, the login was functioning till today…

        Best Regards
        Georg

  49. Kingsley

    Now of this works……. i suspect the database because when comparing it to default wp install AUTO_INCREMENT is missing from the “extra” column on my database

    • Kingsley

      i mean NON work for me

  50. Phoenix

    Clearing the cache and cookies helped me. Thank you

Lascia una risposta

Grazie per aver scelto di lasciare un commento. Tenga presente che tutti i commenti sono moderati in base alle nostre politica dei commenti e il suo indirizzo e-mail NON sarà pubblicato. Si prega di NON utilizzare parole chiave nel campo del nome. Avremo una conversazione personale e significativa.