From: Richard Bowen Date: Wed, 19 Feb 2014 15:03:09 +0000 (+0000) Subject: Remove embarrassing stuck-in-the-past recipe. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=92a06be8e1320f33dc61ce90cd1ad50068e95186;p=thirdparty%2Fapache%2Fhttpd.git Remove embarrassing stuck-in-the-past recipe. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1569778 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/rewrite/remapping.xml b/docs/manual/rewrite/remapping.xml index 335ad31a322..52427529ab2 100644 --- a/docs/manual/rewrite/remapping.xml +++ b/docs/manual/rewrite/remapping.xml @@ -447,46 +447,6 @@ com http://www.example.com/
-
- - Browser Dependent Content - -
-
Description:
- -
-

We wish to provide different content based on the browser, or - user-agent, which is requesting the content.

-
- -
Solution:
- -
-

We have to decide, based on the HTTP header "User-Agent", - which content to serve. The following config - does the following: If the HTTP header "User-Agent" - contains "Mozilla/3", the page foo.html - is rewritten to foo.NS.html and the - rewriting stops. If the browser is "Lynx" or "Mozilla" of - version 1 or 2, the URL becomes foo.20.html. - All other browsers receive page foo.32.html. - This is done with the following ruleset:

- - -RewriteCond %{HTTP_USER_AGENT} ^Mozilla/3.* -RewriteRule ^foo\.html$ foo.NS.html [L] - -RewriteCond %{HTTP_USER_AGENT} ^Lynx/ [OR] -RewriteCond %{HTTP_USER_AGENT} ^Mozilla/[12] -RewriteRule ^foo\.html$ foo.20.html [L] - -RewriteRule ^foo\.html$ foo.32.html [L] - -
-
- -
-
Canonical URLs