[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

mod_rewrite: redirect if Trident

Posted on 2014-03-12
3
Medium Priority
?
330 Views
Last Modified: 2014-03-14
RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} "MSIE [6-8]" [NC]
RewriteRule ^(.*)$ http://mysite.com/ie [R=301,L]

Open in new window

That works on some versions of Internet Explorer but not others.  Some versions of Internet Explorer identify themselves as as Mozilla!

Here is an example:
Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/5.0)

Open in new window


Is there a way to form a Rewrite Condition to apply if the word: "Trident" occurs in the user agent definition?
0
Comment
Question by:hankknight
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 43

Accepted Solution

by:
David S. earned 2000 total points
ID: 39924299
They all identify themselves as Mozilla, as do most other web browsers. Older versions just say "Mozilla/4.0" instead of "Mozilla/5.0". I recommend you read Lest We Forget (Or How I Learned What’s So Bad About Browser Sniffing).

Are you sure that you want to redirect all versions of IE? Are you using the X-UA-Compatible header to force newer versions to use compatibility modes? Wouldn't it be easier to fix the compatibility issues than to make and maintain two different copies of each page?
0
 
LVL 16

Author Comment

by:hankknight
ID: 39926338
Yes, I understand what I want.  How can I detect "Trident"?
0
 
LVL 43

Expert Comment

by:David S.
ID: 39926787
Then would you help us to understand why you want that?
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hi, in this article I'm going to teach you how to run your own site, and how to let people in (without IP). I'll talk about and explain each step... :) By the way, everything in this Tutorial is completely free and legal. This article is for …
In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses
Course of the Month14 days, 11 hours left to enroll

649 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question