You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by rb...@apache.org on 2007/08/13 02:35:51 UTC

svn commit: r565212 - in /httpd/httpd/trunk/docs/manual/rewrite: flags.html.en flags.xml

Author: rbowen
Date: Sun Aug 12 17:35:50 2007
New Revision: 565212

URL: http://svn.apache.org/viewvc?view=rev&rev=565212
Log:
Correct two syntactical errors in examples given for the flags - CO and
H, specifically. Also adds an example for the [NE] flag.

Modified:
    httpd/httpd/trunk/docs/manual/rewrite/flags.html.en
    httpd/httpd/trunk/docs/manual/rewrite/flags.xml

Modified: httpd/httpd/trunk/docs/manual/rewrite/flags.html.en
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/rewrite/flags.html.en?view=diff&rev=565212&r1=565211&r2=565212
==============================================================================
--- httpd/httpd/trunk/docs/manual/rewrite/flags.html.en (original)
+++ httpd/httpd/trunk/docs/manual/rewrite/flags.html.en Sun Aug 12 17:35:50 2007
@@ -81,7 +81,7 @@
 
 <div class="example"><p><code>
 RewriteEngine On<br />
-RewriteRule ^/index.html - [CO=frontdoor=yes:.apache.org:1440:/]
+RewriteRule ^/index.html - [CO=frontdoor:yes:.apache.org:1440:/]
 </code></p></div>
 
 <p>This rule doesn't rewrite the request (the "-" rewrite target tells
@@ -143,7 +143,7 @@
 file extension to be parsed by the php handler:</p>
 
 <div class="example"><p><code>
-RewriteRule !\. - [H=application/x-httpd-php .php]
+RewriteRule !\. - [H=application/x-httpd-php]
 </code></p></div>
 
 <p>
@@ -182,6 +182,10 @@
 The [N] flag causes the ruleset to start over again from the top. Use
 with extreme caution, as it may result in loop.
 </p>
+<p>
+The [Next] flag could be used, for example, if you wished to replace a
+certain string or letter repeatedly in a request.
+</p>
 
 
 
@@ -201,7 +205,21 @@
 
 
 <h3><a name="flag_ne" id="flag_ne">NE|noescape</a></h3>
-<p>No escape flag</p>
+<p>By default, special characters, such as <code>&amp;</code> and
+<code>?</code>, for example, will be converted to their hexcode
+equivalent. Using the [NE] flag prevents that from happening.
+</p>
+
+<div class="example"><p><code>
+RewriteRule ^/anchor/(.+) /bigpage.html#$1 [NE,R]
+</code></p></div>
+
+<p>
+The above example will redirect <code>/anchor/xyz</code> to
+<code>/bigpage.html#xyz</code>. Omitting the [NE] will result in the #
+being converted to its hexcode equivalent, <code>%23</code>.
+</p>
+
 
 
 <h3><a name="flag_ns" id="flag_ns">NS|nosubreq</a></h3>

Modified: httpd/httpd/trunk/docs/manual/rewrite/flags.xml
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/rewrite/flags.xml?view=diff&rev=565212&r1=565211&r2=565212
==============================================================================
--- httpd/httpd/trunk/docs/manual/rewrite/flags.xml (original)
+++ httpd/httpd/trunk/docs/manual/rewrite/flags.xml Sun Aug 12 17:35:50 2007
@@ -88,7 +88,7 @@
 
 <example>
 RewriteEngine On<br />
-RewriteRule ^/index.html - [CO=frontdoor=yes:.apache.org:1440:/]
+RewriteRule ^/index.html - [CO=frontdoor:yes:.apache.org:1440:/]
 </example>
 
 <p>This rule doesn't rewrite the request (the "-" rewrite target tells
@@ -151,7 +151,7 @@
 file extension to be parsed by the php handler:</p>
 
 <example>
-RewriteRule !\. - [H=application/x-httpd-php .php]
+RewriteRule !\. - [H=application/x-httpd-php]
 </example>
 
 <p>
@@ -192,6 +192,10 @@
 The [N] flag causes the ruleset to start over again from the top. Use
 with extreme caution, as it may result in loop.
 </p>
+<p>
+The [Next] flag could be used, for example, if you wished to replace a
+certain string or letter repeatedly in a request.
+</p>
 
 </section>
 
@@ -212,7 +216,21 @@
 </section>
 
 <section id="flag_ne"><title>NE|noescape</title>
-<p>No escape flag</p>
+<p>By default, special characters, such as <code>&amp;</code> and
+<code>?</code>, for example, will be converted to their hexcode
+equivalent. Using the [NE] flag prevents that from happening.
+</p>
+
+<example>
+RewriteRule ^/anchor/(.+) /bigpage.html#$1 [NE,R]
+</example>
+
+<p>
+The above example will redirect <code>/anchor/xyz</code> to
+<code>/bigpage.html#xyz</code>. Omitting the [NE] will result in the #
+being converted to its hexcode equivalent, <code>%23</code>.
+</p>
+
 </section>
 
 <section id="flag_ns"><title>NS|nosubreq</title>