I can't log in after moving my site
Clear your browser cookies, empty the session table, and check that Cookie Domain and Cookie Path in Global Configuration are blank or match the new address.
Why it happens
Logins depend on cookies and sessions. After a move, an old cookie domain or path, a wrong live_site, or old sessions in the database can stop the login cookie from being accepted, so the login page just reloads.
Fix it
- Clear your browser cookies for the site (or try a private window).
- In
configuration.php, setcookie_domainandcookie_pathto empty, andlive_siteto empty. - In phpMyAdmin, empty the
#__sessiontable (it only holds active logins). - Check that
tmp_pathandlog_pathpoint to folders that exist on the new server. - Try logging in again.
Good to know
- If you moved from http to https (or back), check Force HTTPS in configuration.php (
force_ssl).
Sources
- Global Configuration – Joomla User Guide
- Moving Installation Directory – Joomla User Guide