From 22f03d9c5093816c0123267f511db4023431c634 Mon Sep 17 00:00:00 2001 From: Rich Bowen Date: Wed, 19 Feb 2014 15:03:09 +0000 Subject: [PATCH] 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 --- docs/manual/rewrite/remapping.xml | 40 ------------------------------- 1 file changed, 40 deletions(-) diff --git a/docs/manual/rewrite/remapping.xml b/docs/manual/rewrite/remapping.xml index 335ad31a32..52427529ab 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 -- 2.40.0