Redirect ALL old type browsers

Discussion in 'Apache' started by TheVisitors, Jul 4, 2015.

  1. #1
    There many guides on how to redirect IE, but I cannot find anything on how to redirect old browser copies of Firefox, Chrome, Safari, and Opera
    # Redirect OLD Browsers
    RewriteCond %{HTTP_USER_AGENT} "Chrome/[1-42]\." [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} "Firefox/[1-38]\." [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} "Safari/[1-7]\." [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} "Opera/[1-29]\." [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} "MSIE [1-10]\." [NC]
    RewriteRule . http://browsehappy.com [L]
    Code (ApacheConf):
    ^ This to me makes sense. But sadly it doesn't seem to work and I'm hoping someone will know something I don't.
     
    TheVisitors, Jul 4, 2015 IP