Currently I am using this code in my .htaccess file:
# Enable Rewrite feature:
RewriteEngine On
# Redirect IE6/7/8 users to "OUTDATED BROWSER" site:
RewriteCond %{HTTP_USER_AGENT} "MSIE [6-8]" [NC]
RewriteRule ^(.*)$ http://outdatedbrowser.com/ja [R,L]
It works great when the user types our domain in the browser address bar or otherwise comes to our site via HTTP link. However, if I type “https://” and then our domain into the address bar and hit return, the redirect does not work.
I tried the following code, but it does NOT resolve the problem:
# Redirect IE6/7/8 users to "OUTDATED BROWSER" site:
RewriteCond %{HTTP_USER_AGENT} "MSIE [6-8]" [NC]
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ http://outdatedbrowser.com/ja [R,L]
RewriteCond %{HTTP_USER_AGENT} "MSIE [6-8]" [NC]
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ http://outdatedbrowser.com/ja [R,L]
Why redirect? Because I am using Let’s Encrypt to give us HTTPS now, and when someone comes to our site using IE8 (for example), they get a security certificate domain mismatch error screen that gives the impression our site is suspicious. That happens because IE8 is incompatible, but I would prefer to redirect those folks to a friendly “update your browser” page.
So once again, the problem (no redirect) only occurs when someone specifically types “https://” and then the domain into the address bar of the browser and hits return. I want to redirect all IE6/7/8 users regardless of how they type our domain (with HTTP or with HTTPS).
Any thoughts?
Thanks,
James W.
dynamo mailing list
email@hidden
Update your subscriptions at: