On Mon, May 25, 2015 at 8:30 AM, Frank Lehmann <[email protected]> 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 ------------------------ [email protected]
http://about.me/hassanschroeder
twitter: @hassan
Consulting Availability : Silicon Valley or remote
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]