-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Frank,

On 5/25/15 11:30 AM, Frank Lehmann wrote:
> i want to rewrite my url when a mobile user reaches my homepage.
> 
> I found this condition on the web after several searchings.
> 
> But it will not work. All other condition also not working, i have
> tested many conditions.
> 
> How can i rewrite a url when a mobile client is getting my homepage
> ? Thanks for help.
> 
> 
> RewriteCond %{HTTP_USER_AGENT} 
> ("android|blackberry|googlebot-mobile|iemobile|ipad|iphone|ipod|mobile
|palmos|webos")
>
> 
[NC]
> RewriteRule ^(.+)$ http://www.dashandwerk.net/mobile/ [L]

Where did you put those directives?

Your regular expression is probably not what you want, because it will
require that android have a double-quote before it, and that webos
have a double-quote after it.

> My environment.
> 
> Tomcat 8 Windows 2012 R2 Homepage under folder webapps/root

Note that webapps/root will require a request to
http://www.dashandwerk.net/root/[whatever]. If you want to use the
"root" context (deployed on /), you'll need to use ROOT (upper-case
matters, even on a case-insensitive filesystem).

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
Comment: GPGTools - http://gpgtools.org

iQIcBAEBCAAGBQJVZHi8AAoJEBzwKT+lPKRYiawP/0zYgs1D/sPClbu3nGbR8OkD
IWOj7CMeqPOitdATySIqImuLsq9xn+dWzgVKDXqL/DiGGcVFn8EpZB11Hp5bxj1q
lYqFlA+Iaj/ZMoX5UcyJbmIi33fon8KdAuoaNx9LdQiIdbTVz9x8Q6JwRRNJKrrC
QmXLXNdCQOBWGR8UGHPwhVPY2U5GEnuHpB1gmyqTgDsmqj3bZJx6YQIIhg50i7Ik
9EAum5PlrFwHq/FQJT5QORMgbwJcE1YPje/Vne/XSSOHfIWEqlPSIBL2FFkFh30g
DE/vwhAO2fS5VBooAKaI/Mt47X9rHN5Q4F/DRwRDYqmcKpCEMk3sVJbL9JkKfsBd
84bWYwT4Q5Ip/3styIvYdhghYyy3H0FTtycDDc0RiK8FDiZD0kIdnRdoCOspsoTh
o1hD+eGW2TOSNYnpDCx3lzaZv3z0nBNK4ZLokrdCeqWQp6x3XwsU9fiC19UIkUu9
dv+GXjfPQgx4KDfyxT8hh8tb98WNwthgEzR3W8BvSwWiYdE5M2iAOD75JDKjJkew
xhEieVtZ7PP+KsofOvvwr0r/Apbqa0mpTAIPomhgYTzQD2SzxQ0qkFnDZvW8yBNx
/0Tvr+AW8bIAwszbSRQxTEqTlQX9ktx7/LzUVijqwkP3IY64DOvRzfH9PQzrEIA0
ddt0DDDepc2Tt5GkkeFa
=YJtJ
-----END PGP SIGNATURE-----

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

Reply via email to