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.
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.
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