You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by lg...@apache.org on 2012/04/01 17:42:55 UTC
svn commit: r1308142 - in /httpd/httpd/branches/2.2.x/docs/manual:
new_features_2_0.xml.fr rewrite/flags.xml.fr
Author: lgentis
Date: Sun Apr 1 15:42:54 2012
New Revision: 1308142
URL: http://svn.apache.org/viewvc?rev=1308142&view=rev
Log:
Updates.
Modified:
httpd/httpd/branches/2.2.x/docs/manual/new_features_2_0.xml.fr
httpd/httpd/branches/2.2.x/docs/manual/rewrite/flags.xml.fr
Modified: httpd/httpd/branches/2.2.x/docs/manual/new_features_2_0.xml.fr
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.2.x/docs/manual/new_features_2_0.xml.fr?rev=1308142&r1=1308141&r2=1308142&view=diff
==============================================================================
--- httpd/httpd/branches/2.2.x/docs/manual/new_features_2_0.xml.fr (original)
+++ httpd/httpd/branches/2.2.x/docs/manual/new_features_2_0.xml.fr Sun Apr 1 15:42:54 2012
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE manualpage SYSTEM "./style/manualpage.dtd">
<?xml-stylesheet type="text/xsl" href="./style/manual.fr.xsl"?>
-<!-- English Revision: 421100:1304981 (outdated) -->
+<!-- English Revision: 1304981 -->
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
@@ -231,8 +231,7 @@
<dt><module>mod_auth_dbm</module></dt>
<dd>Plusieurs bases de données DBM sont supportées, et sélectionnables
- au moyen de la directive <directive
- module="mod_auth_dbm">AuthDBMType</directive>.</dd>
+ au moyen du type <a href="../2.0/mod/mod_auth_dbm.html#AuthDBMType"><code>AuthDBMType</code></a>.</dd>
</dl>
</section>
</manualpage>
Modified: httpd/httpd/branches/2.2.x/docs/manual/rewrite/flags.xml.fr
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.2.x/docs/manual/rewrite/flags.xml.fr?rev=1308142&r1=1308141&r2=1308142&view=diff
==============================================================================
--- httpd/httpd/branches/2.2.x/docs/manual/rewrite/flags.xml.fr (original)
+++ httpd/httpd/branches/2.2.x/docs/manual/rewrite/flags.xml.fr Sun Apr 1 15:42:54 2012
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE manualpage SYSTEM "../style/manualpage.dtd">
<?xml-stylesheet type="text/xsl" href="../style/manual.fr.xsl"?>
-<!-- English Revision : 1303775 -->
+<!-- English Revision : 1307737 -->
<!-- French translation : Lucien GENTIS -->
<!-- Reviewed by : Vincent Deffontaines -->
@@ -686,10 +686,31 @@ RewriteRule (.*\.html) docs.php?$1
qu'à la règle qui la suit immédiatement. Ainsi, si vous voulez
qu'une directive <code>RewriteCond</code> s'applique à plusieurs règles
<code>RewriteRule</code>, une technique possible consiste à inverser ces
-conditions et à utiliser le drapeau [Skip]. Cette technique permet
+conditions et à ajouter une <code>RewriteRule</code> avec le drapeau [Skip]. Cette technique permet
d'élaborer des pseudo-constructions if-then-else : la dernière règle du
bloc then contiendra <code>skip=N</code>, où N est le nombre de règles
-contenues dans le bloc else.</p>
+contenues dans le bloc else :</p>
+<example>
+# Est-ce que le fichier existe ?<br />
+RewriteCond %{REQUEST_FILENAME} !-f<br />
+RewriteCond %{REQUEST_FILENAME} !-d<br />
+<!-- A traduire pour qui y comprend quelquechose -->
+# Create an if-then-else construct by skipping 3 lines if we meant to go to the "else" stanza.<br />
+RewriteRule .? - [S=3]<br />
+<br />
+# Si le fichier existe, alors :
+<indent>
+ RewriteRule (.*\.gif) images.php?$1<br />
+ RewriteRule (.*\.html) docs.php?$1<br />
+ # Skip past the "else" stanza.<br />
+ RewriteRule .? - [S=1]<br />
+</indent>
+# ELSE...
+<indent>
+ RewriteRule (.*) 404.php?file=$1<br />
+</indent>
+# END
+</example>
</section>