I refer to your magento store domain as example.com in this post. If its www.example.com or store.example.com or whatever, substitute accordingly.
I just ran into this issue and here are the specifics. Magento 2 2.2.2 install. I had configured the secure base url's to http://example.com/ initially and as I was getting my letsencrypt ssl cert configured on my server, I thoughtlessly enabled the option to redirect all http traffic to https.
This wouldn't be an issue normally, but Magento can be a bit temperamental. I visited my storefront and my SSL is working correctly, but as I attempted to access admin, I received the "ERR_TOO_MANY_REDIRECTS" notice and a failed page load.
I see several ways to fix this issue but the one that worked for me first attempt was this.
- SSH into server.
- cd to your magento install dir.
- run the following command:
- php bin/magento config:show
view the output and look for web/secure/base_url, web/secure/base_link_url & web/secure/use_in_adminhtml.
These values should be configured with https://example.com/ for the url options and web/secure/use_in_adminhtml = 1.
If they are not, you can run the following commands from your magento install directory to update your configuration.
- php bin/magento config:sensitive:set web/secure/base_url https://example.com/
- php bin/magento config:sensitive:set web/secure/base_link_url https://example.com
- php bin/magento config:set web/secure/use_in_adminhtml 1
- php bin/magento cache:clean
After that, visit your admin page, clear your browser cache, reload, and you should now have your access back! with SSL support.
First step I would take after that is to log back into the admin portal and verify your configuration options to ensure you arent going to run into any other unexpected problems.
I hope this help!
Here are some Magento resources to help guide you:
Set Configuration Values
Other Configuration Paths Reference
Sensitive and System Specific References