Author: rbowen Date: Fri Jan 1 21:27:55 2010 New Revision: 895078 URL: http://svn.apache.org/viewvc?rev=895078&view=rev Log: Adds helpful diagrams to the rewrite intro document, provided by Joseph Pecoraro. Modified: httpd/httpd/trunk/docs/manual/rewrite/intro.html.en httpd/httpd/trunk/docs/manual/rewrite/intro.xml Modified: httpd/httpd/trunk/docs/manual/rewrite/intro.html.en URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/rewrite/intro.html.en?rev=895078&r1=895077&r2=895078&view=diff ============================================================================== --- httpd/httpd/trunk/docs/manual/rewrite/intro.html.en (original) +++ httpd/httpd/trunk/docs/manual/rewrite/intro.html.en Fri Jan 1 21:27:55 2010 @@ -31,9 +31,9 @@

See also

@@ -155,7 +155,7 @@
top
-

RewriteRule basics

+

RewriteRule Basics

A RewriteRule consists of three arguments separated by spaces. The arguments are

    @@ -169,6 +169,12 @@ (the part after the hostname but before any question mark indicating the beginning of a query string).

    +

    + Syntax of the RewriteRule directive
    + Figure 2: Syntax of the RewriteRule directive. +

    + +

    The Substitution can itself be one of three things:

    @@ -236,7 +242,7 @@
top
-

Rewrite conditions

+

Rewrite Conditions

One or more RewriteCond directives can be used to restrict the types of requests that will be subject to the @@ -246,6 +252,11 @@ expression that must match the variable, and a third optional argument is a list of flags that modify how the match is evaluated.

+

+ Syntax of the RewriteCond directive
+ Figure 3: Syntax of the RewriteCond directive +

+

For example, to send all requests from a particular IP range to a different server, you could use:

Modified: httpd/httpd/trunk/docs/manual/rewrite/intro.xml URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/rewrite/intro.xml?rev=895078&r1=895077&r2=895078&view=diff ============================================================================== --- httpd/httpd/trunk/docs/manual/rewrite/intro.xml (original) +++ httpd/httpd/trunk/docs/manual/rewrite/intro.xml Fri Jan 1 21:27:55 2010 @@ -160,7 +160,7 @@ -

RewriteRule basics +
RewriteRule Basics

A RewriteRule consists of three arguments separated by spaces. The arguments are

    @@ -174,6 +174,13 @@ (the part after the hostname but before any question mark indicating the beginning of a query string).

    +

    + Syntax of the RewriteRule directive
    + Figure 2: Syntax of the RewriteRule directive. +

    + +

    The Substitution can itself be one of three things:

    @@ -243,7 +250,7 @@
-
Rewrite conditions +
Rewrite Conditions

One or more RewriteCond directives can be used to restrict the types of requests that will be subject to the @@ -253,6 +260,12 @@ expression that must match the variable, and a third optional argument is a list of flags that modify how the match is evaluated.

+

+ Syntax of the RewriteCond directive
+ Figure 3: Syntax of the RewriteCond directive +

+

For example, to send all requests from a particular IP range to a different server, you could use: