Hello. I use this minify on the site. Everything works fine. But if I use a secure protocol (https) then all my css and js styles and scripts are not processed (that is, styles are not displayed, scripts do not work). Moreover, if I open the link https://site.ru/min?g=css in the browser tab, it displays the minified code. Tell me, please, what is the problem.

PS I tried to connect relatively (that is, / min? G = css) and indicate the full path ( https://site.ru/min?g=css ).

    1 answer 1

    Try adding to your .htaccess line:

    SetEnvIf X-Forwarded-Proto https HTTPS=on 
    • 2
      Thank. You are the best) - Ivan Churkin
    • I think you didn’t exactly change the name of the topic. If I connect styles and JS files directly, and not through a minifay - everything works - Ivan Churkin
    • @IvanChurkin corrected. Choose the answer best? - Vadizar
    • This answer would be even more useful if it were written why such an error occurred at all and why this line corrects it. - Pavel Mayorov