Magento 2 admin too many redirects error
On a Magento 2 site, after migrating to a new domain, when accessing the admin area, I get too many redirect error.
To fix, using the following SQL command verify URLs are correct.
1 |
SELECT * FROM core_config_data WHERE path like '%_url'; |
if any URL is not correct, fix it.
Then run the following commands in the Magento directory.
1 2 3 4 5 |
php bin/magento cache:clean php bin/magento cache:flush php bin/magento indexer:reindex php bin/magento setup:upgrade php bin/magento setup:static-content:deploy -f |
See Magento