The second link provides an explantion of using "profile headers" to identify mobile requests, unfortuately, the same page does not provide an example of utilizing headers within htaccess. They may in subsequent pages.
Going through the SERPS you may even locate a website that offers a complied list of various UA's. I don't recall ever seeing one in this forum.