Created 7 month back

How to make 302 redirect with .htaccess when user's browser is out of date?

Example you show the following page if the user browser is outdated:

Out-of-date popup

But first you need to redirect user to this page. If Apache perhaps something like this:

RewriteCond %{REQUEST_URI} !non-compliant/

RewriteCond %{HTTP_USER_AGENT} ^.*Mozilla\/[1-OLD]\\.* [NC,OR]

RewriteCond %{HTTP_USER_AGENT} ^.*Chrome\/[1-OLD]\\.* [NC,OR]

RewriteCond %{HTTP_USER_AGENT} ^.*Firefox\/[1-OLD\\.* [NC,OR]

RewriteCond %{HTTP_USER_AGENT} ^.*MSIE\s[1-OLD]\\.* [NC,OR]

RewriteRule ^(.*)$ /non-compliant/ [NC,L]