After installing Magento 2 on my web hosting account, I changed the admin base URL, and from then, I couldn't access the admin panel any longer. Web browsers state improper redirection that goes into endless loops.
Sometimes I can login to the admin, but cannot proceed further. Then I get stopped here:
I ran into the issue while customizing the Magento 2 admin URL and no longer has access to the admin panel. Trying to open the admin page results to "improper redirection" that goes into endless loops. And the URL becomes
http://www.example.com/admin/admin/admin/index/index/key/blablabla. I can only get to the admin login page displayed in raw HTML with no formatting. But I can't gain access after typing in the correct login details.
The mistake I made was this:
"Use Custom Admin URL: Yes"
"Use Custom Admin Path: No"
"Custom Admin Path: admin"
I can surely edit PHP files on the server and database tables in phpMyAdmin, if given clear step-by-step instructions.
Any help would be much appreciated. Thanks in advance.