1

I am not able to find and way to set some header in .htaccess file only if the browser is IE9. Pseudo code for my requirement is:

if(ie 9) {
 header set ( value2)  
} else {
      header set ( value2)
}

Please suggest me how i can achieve this in my htaccess file.

1 Answer 1

2

You could use BrowserMatch directive from mod_setenvif to set Apache environment variable and use this variable to set appropriate header value using mod_headers.

BrowserMatch "MSIE 9" MSIE9FOUND
Header set YourHeader value2 env=MSIE9FOUND

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .