From 429440c322f42288a8ea3795ce8c90cf51c9ec55 Mon Sep 17 00:00:00 2001 From: Rich Bowen Date: Wed, 28 May 2008 02:10:56 +0000 Subject: [PATCH] Minor tweaks to grammar and examples. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@660785 13f79535-47bb-0310-9956-ffa450edef68 --- docs/manual/rewrite/rewrite_flags.html.en | 10 ++++++---- docs/manual/rewrite/rewrite_flags.xml | 12 ++++++++---- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/docs/manual/rewrite/rewrite_flags.html.en b/docs/manual/rewrite/rewrite_flags.html.en index dda320cc87..7972d7dfc2 100644 --- a/docs/manual/rewrite/rewrite_flags.html.en +++ b/docs/manual/rewrite/rewrite_flags.html.en @@ -182,14 +182,14 @@ redirect - either internal or external - causing the request process to start over.

It is therefore important, if you are using RewriteRule directives in one of these -context that you take explicit steps to avoid rules looping, and not +contexts, that you take explicit steps to avoid rules looping, and not count solely on the [L] flag to terminate execution of a series of rules, as shown below.

The example given here will rewrite any request to index.php, giving the original request as a query string -argument to index.php, however, if the request is already -for index.php, this rule will be skipped.

+argument to index.php, however, the RewriteCond ensures that if the request +is already for index.php, the RewriteRule will be skipped.

RewriteCond %{REQUEST_URI} !index\.php
@@ -214,7 +214,9 @@ RewriteRule (.*)A(.*) $1B$2 [N]

You can think of this as a while loop: While this -pattern still matches, perform this substitution.

+pattern still matches (i.e., while the URI still contains an +A), perform this substitution (i.e., replace the +A with a B).

diff --git a/docs/manual/rewrite/rewrite_flags.xml b/docs/manual/rewrite/rewrite_flags.xml index 9befdede1b..d7a63667c3 100644 --- a/docs/manual/rewrite/rewrite_flags.xml +++ b/docs/manual/rewrite/rewrite_flags.xml @@ -192,14 +192,16 @@ start over.

It is therefore important, if you are using RewriteRule directives in one of these -context that you take explicit steps to avoid rules looping, and not +contexts, that you take explicit steps to avoid rules looping, and not count solely on the [L] flag to terminate execution of a series of rules, as shown below.

The example given here will rewrite any request to index.php, giving the original request as a query string -argument to index.php, however, if the request is already -for index.php, this rule will be skipped.

+argument to index.php, however, the RewriteCond ensures that if the request +is already for index.php, the RewriteRule will be skipped.

RewriteCond %{REQUEST_URI} !index\.php
@@ -224,7 +226,9 @@ RewriteRule (.*)A(.*) $1B$2 [N]

You can think of this as a while loop: While this -pattern still matches, perform this substitution.

+pattern still matches (i.e., while the URI still contains an +A), perform this substitution (i.e., replace the +A with a B).

-- 2.40.0