maximillean_953
May 26, 2014Nimbostratus
add header based on request
Hi,
I try to write an irule based on request for example.
request comes as 10.1.1.1/1.xml so my rule has to apply when request ends with ".xml" i want to add response header X-Robots-Tag "noindex" value.
when handling i have to handle request or response dont know that if i can handle both at the same time while writing rule? how would you guys write this rule?
Note: I want it to work on 404's too so add only reponse header is not an option it must check request and handle response. not that if reponse is accurate 200 and add header. I want to see header added on 404's too.