Zend certified PHP/Magento developer

Magento Admin URL redirects to Search results page

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:

  1. In the database I set my local domain http://{unsecure_domain}/ for web/unsecure/base_url and for web/secure/base_url

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