On Mon, May 25, 2015 at 8:30 AM, Frank Lehmann <frank-lehm...@freenet.de> wrote:

> I found this condition on the web after several searchings.

> RewriteCond %{HTTP_USER_AGENT}
> ("android|blackberry|googlebot-mobile|iemobile|ipad|iphone|ipod|mobile|palmos|webos")
> [NC]
> RewriteRule ^(.+)$ http://www.dashandwerk.net/mobile/ [L]

> But it will not work.

Not surprising, since that's configuration for Apache httpd and has
nothing to do with Tomcat.

> How can i rewrite a url when a mobile client is getting my homepage ?

Assuming you are in fact actually using Tomcat, you can try this:
  http://tuckey.org/urlrewrite/

Good luck,
-- 
Hassan Schroeder ------------------------ hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan
Consulting Availability : Silicon Valley or remote

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to