Magento – HTTPS not working on Magento2 backend

magento2ssl

I'm trying to enable our ssl certificate on wijnmaat.nl it is working for the frontend but the backend is giving us an error:

ERR_TO_MANY_REDIRECTS

This is when I try to reach the backend trough https://www.wijnmaat.nl/admin. this is when ssl is enabled in the config in the backend & frontend and when it is off. Can somebody please help us with this?

We also checked and edited the secure base url to https://www.wijnmaat.nl

thanks,

Brent

Best Answer

Based on the this article I was able to resolve it.

Check if the entry already exists.

select * from  core_config_data  where path = 'web/secure/use_in_adminhtml';

If not insert the following entry in the DB

INSERT INTO core_config_data (scope,scope_id,path,value) VALUES ('default',0,'web/secure/use_in_adminhtml',1);

else update the value and set it to 1

After inserting / updating the record clean the cache via the CLI : php bin/magento cache:clean

Related Topic