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.

magento 2 admin 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.

Advertisement

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
Add a comment

Leave a Reply

Your email address will not be published. Required fields are marked *

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Advertisement