I installed PHP 7.4 and MySQL using Homebrew. I originally configured the local WordPress site’s address to the remote one but realized I made a mistake. So, I deleted the wp-config.php
and ran the installation again and pointed the site and WordPress address to the local one. They are set to http://localhost:8000. Now, the local site keeps redirecting from localhost:8000 to localhost. The Dashboard works fine but when I try to navigate to the site, it keeps redirecting to localhost.
I already tried this but it didn’t work. I also searched for other similar questions here on Stackoverflow and I found this but it doesn't have an answer that worked. I can't comment on other questions because I don't have enough reputation.
I've tried clearing Chrome's cache. I've tried uninstalling and re-installing the PHP formula and its dependencies. I've tried using Safari to load the site and it worked. I've tried disabling browser extensions. I've tried editing wp-config.php as suggested here. I also tried loading the site in an incognito Chrome browser and it worked.