I need to set some headers if REQUEST_URI
contains the "compile" word.
My uri is:
http://myurl/compile/123456/123456?token=myvalue
This is the code in the .htaccess that DOES NOT work:
Header always set MyHeaderCompile myvalue "expr=%{REQUEST_URI} =~ /compile/"
This line does not set MyHeaderCompile header.
If I change the line with this:
Header always set MyHeaderCompile myvalue "expr=%{QUERY_STRING} =~ /token/"
It works.