Magento 2 redirects url to https but not admin panel

I know this question is more about apache config, but it involves Magento too. Currently i have configured my Magento with 2 different URLs,

for port 443 or https I have an url like this: https://subdomain.domain.org/

for http i have: http://subdomain.domain.org/folder

I want to redirect whenever a user types subdomain.domain.org to https://subdomain.domain.org, but if i do this my admin panel redirects there too, i have tried RewriteCond but no one of them worked, my admin panel url is: http://subdomain.domain.org/folder/admin , this link should not be redirected.

Can someone help me to figure out how to do this?

Thank you!