I'm using the iBlog Pro Theme and want to redirect smartphone devices to a mobile website instead of the responsive design. I'm using the following code in the htaccess and have the problem that the redirection doesn't work.

htaccess is supported by the server, e.g. for permalinks it works without any problems. And I also had a mobile redirection plugin aktivated that works, but only for the homepage. For subpages it always ends with a redirection loop, that's why I want to have a solution with htaccess. The plugin Rob posted is not working in any way.