Return-Path: X-Original-To: apmail-httpd-cvs-archive@www.apache.org Delivered-To: apmail-httpd-cvs-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3782F10E0A for ; Sat, 29 Mar 2014 15:52:04 +0000 (UTC) Received: (qmail 25923 invoked by uid 500); 29 Mar 2014 15:52:01 -0000 Delivered-To: apmail-httpd-cvs-archive@httpd.apache.org Received: (qmail 25855 invoked by uid 500); 29 Mar 2014 15:52:01 -0000 Mailing-List: contact cvs-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list cvs@httpd.apache.org Received: (qmail 25848 invoked by uid 99); 29 Mar 2014 15:52:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 29 Mar 2014 15:52:01 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 29 Mar 2014 15:51:56 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 9FFE823889E3; Sat, 29 Mar 2014 15:51:36 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1583012 - /httpd/httpd/branches/2.4.x/docs/manual/mod/mod_rewrite.xml.fr Date: Sat, 29 Mar 2014 15:51:36 -0000 To: cvs@httpd.apache.org From: lgentis@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20140329155136.9FFE823889E3@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: lgentis Date: Sat Mar 29 15:51:36 2014 New Revision: 1583012 URL: http://svn.apache.org/r1583012 Log: Update. Modified: httpd/httpd/branches/2.4.x/docs/manual/mod/mod_rewrite.xml.fr Modified: httpd/httpd/branches/2.4.x/docs/manual/mod/mod_rewrite.xml.fr URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.4.x/docs/manual/mod/mod_rewrite.xml.fr?rev=1583012&r1=1583011&r2=1583012&view=diff ============================================================================== --- httpd/httpd/branches/2.4.x/docs/manual/mod/mod_rewrite.xml.fr (original) +++ httpd/httpd/branches/2.4.x/docs/manual/mod/mod_rewrite.xml.fr Sat Mar 29 15:51:36 2014 @@ -1,7 +1,7 @@ - + @@ -1040,28 +1040,18 @@ RewriteRule ...règles concernant pouvez utiliser ce qui suit :

-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]

Explications : si vous utilisez un navigateur - (Netscape Navigator, Mozilla etc) qui s'identifie comme - 'Mozilla', vous accèderez à la page d'accueil max (qui - peut contenir des frames, ou d'autres ressources - particulières). - Si vous utilisez le navigateur Lynx (qui est un navigateur - en mode texte), vous accèderez à une page d'accueil min - (qui peut être une version conçue pour une navigation simple - basée sur le texte). - Si aucune de ces conditions n'est satisfaite (vous utilisez tout - autre navigateur, ou votre navigateur s'identifie de manière non - standard), vous accèderez à la page d'accueil std - (standard).

+ qui s'identifie comme un navigateur de mobile (notez que cet + exemple est incomplet car il existe de nombreuses autres + plateformes mobiles), c'est la version mobile de la page + d'accueil qui sera servie. Dans le cas contraire, vous verrez + s'afficher la page d'accueil standard.