Is it possible using SetEnvIf to set a variable to the content of another variable? and if so, how?
For example
SetEnvIf defined_http_conf_var ^(.*)$ has_been_defined=%{defined_http_conf_var}
So the idea is, if inside the apache.conf or httpd conf defined_htaccess_var
has been defined, then has_been_defined
inside the .htaccess should now contain the value of it?
Note. This is for apache 2.2
You can use it like this:
See more details here