From: Richard Bowen Date: Tue, 10 Sep 2013 14:16:24 +0000 (+0000) Subject: Drag the example into this decade. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fd67ecfc55f78cfe30dc9fb6c46f800b07e99dcc;p=thirdparty%2Fapache%2Fhttpd.git Drag the example into this decade. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1521498 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/mod/mod_rewrite.xml b/docs/manual/mod/mod_rewrite.xml index efb17121ec8..6b7df2bfec4 100644 --- a/docs/manual/mod/mod_rewrite.xml +++ b/docs/manual/mod/mod_rewrite.xml @@ -907,25 +907,17 @@ RewriteRule ...some special stuff for any of these hosts... use the following:

-RewriteCond %{HTTP_USER_AGENT} ^Mozilla -RewriteRule ^/$ /homepage.max.html [L] - -RewriteCond %{HTTP_USER_AGENT} ^Lynx -RewriteRule ^/$ /homepage.min.html [L] +RewriteCond %{HTTP_USER_AGENT} (iPhone|Blackberry|Android) +RewriteRule ^/$ /homepage.mobile.html [L] RewriteRule ^/$ /homepage.std.html [L]

Explanation: If you use a browser which identifies itself - as 'Mozilla' (including Netscape Navigator, Mozilla etc), then you - get the max homepage (which could include frames, or other special - features). - If you use the Lynx browser (which is terminal-based), then - you get the min homepage (which could be a version designed for - easy, text-only browsing). - If neither of these conditions apply (you use any other browser, - or your browser identifies itself as something non-standard), you get - the std (standard) homepage.

+ as a mobile browser (note that the example is incomplete, as + there are many other mobile platforms), the mobile version of + the homepage is served. Otherwise, the standard page is served. +