Samizdata - 7:49 pm on May 30, 2013 (gmt 0)
what do I take from the string to put in the script?
Apologies if I was unclear.
I don't have a Kindle, but my understanding is that if the browser is set to "Mobile View=Off" then it will send a user-agent string falsely claiming to be a standard computer browser and will not be caught by your .htaccess rules.
Apparently, if you set the browser to "Mobile View=On" (however this is done) the user-agent will contain either the word "Kindle" or the word "Silk" and be detectable.
Your first condition already has "kindle" and is case-insensitive, so you should only need to add "silk" with another pipe seperator.
I can't vouch for the rest of the code, and generally advise against copy/pasting anything you don't understand into .htaccess - if you get it wrong your site will become inaccessible.
I think phranque was on the money - the modern way to deal with handheld devices is with responsive design.