When I try going to the admin panel of my local environment of Magento 2.4 (Enterprise) (admin URL is http://{unsecure_domain}/admin
) It redirects me to a secure previous domain as if I was doing a search with the following URL:
https://{secure_domain}/catalogsearch/result/?q=admin+admin+index+index+key+{generated_key}
This is what I’ve tried:
-
In the database I set my local domain
http://{unsecure_domain}/
forweb/unsecure/base_url
and forweb/secure/base_url
-
Run the following commands in order:
$ bin/magento setup:di:compile $ bin/magento setup:upgrade $ bin/magento setup:static-content:deploy -f $ bin/magento cache:clean $ bin/magento cache:flush
However, I still get redirected to that URL above. Please help!