I want to redirect IE users to a static file, regardless of what page they were trying to reach.
My code is inside a server block:
if ($http_user_agent ~* msie ) { rewrite ^.+$ /msie.html last; }
No matter what I try, I either get a 404 or a 500 Internal Server Error. Am I doing this correctly?
Above answer doesn't work any more for IE11 because string "MSIE" isn't available any more in user agent string.
Sample IE11:
Sample IE9:
Found a way to do it by doing: