I need to validate that an environment variable exists and that the value is equal to "cloudflare", in case there is no deny access.
I have done multiple tests, and I have not been able to make it work. This is my test code.
RewriteEngine on
RewriteCond %{ENV:AH_SITE_ENVIRONMENT} prod
RewriteCond %{ENV:HTTP_CDN_LOOP} !cloudflare [NC,OR]
RewriteCond %{ENV:HTTP_CDN_LOOP} !^$
RewriteRule ^(.*)$ - [F,L]
Thanks for the help