You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by ja...@apache.org on 2017/01/02 20:14:12 UTC
svn commit: r1777005 -
/httpd/httpd/branches/2.4.x/docs/manual/rewrite/remapping.xml
Author: jailletc36
Date: Mon Jan 2 20:14:12 2017
New Revision: 1777005
URL: http://svn.apache.org/viewvc?rev=1777005&view=rev
Log:
Fix a typo in an example (missing ")
The typo is already fixed in trunk
+ synch a bit with trunk (tab vs space, trailing space)
Modified:
httpd/httpd/branches/2.4.x/docs/manual/rewrite/remapping.xml
Modified: httpd/httpd/branches/2.4.x/docs/manual/rewrite/remapping.xml
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.4.x/docs/manual/rewrite/remapping.xml?rev=1777005&r1=1777004&r2=1777005&view=diff
==============================================================================
--- httpd/httpd/branches/2.4.x/docs/manual/rewrite/remapping.xml (original)
+++ httpd/httpd/branches/2.4.x/docs/manual/rewrite/remapping.xml Mon Jan 2 20:14:12 2017
@@ -192,7 +192,7 @@ Redirect "/docs/" "http://new.example.co
<highlight language="config">
RewriteEngine on
RewriteBase "/~quux/"
-RewriteRule "^foo\.html$" "foo.cgi" [H=<strong>cgi-script</strong>]
+RewriteRule "^foo\.html$" "foo.cgi" [H=<strong>cgi-script</strong>]
</highlight>
</dd>
</dl>
@@ -299,7 +299,7 @@ directive:</p>
<highlight language="config">
<If "%{HTTP_HOST} != 'www.example.com'">
- Redirect "/" "http://www.example.com/"
+ Redirect "/" "http://www.example.com/"
</If>
</highlight>
@@ -308,7 +308,7 @@ might do the following:</p>
<highlight language="config">
<If "%{SERVER_PROTOCOL} != 'HTTPS'">
- Redirect "/admin/" "https://www.example.com/admin/"
+ Redirect "/admin/" "https://www.example.com/admin/"
</If>
</highlight>
@@ -321,7 +321,7 @@ you might use one of the recipes below.<
RewriteCond "%{HTTP_HOST}" "!^www\.example\.com" [NC]
RewriteCond "%{HTTP_HOST}" "!^$"
RewriteCond "%{SERVER_PORT}" "!^80$"
-RewriteRule "^/?(.*) "http://www.example.com:%{SERVER_PORT}/$1" [L,R,NE]
+RewriteRule "^/?(.*)" "http://www.example.com:%{SERVER_PORT}/$1" [L,R,NE]
</highlight>
<p>And for a site running on port 80</p>
@@ -647,7 +647,7 @@ of the URL.</dd>
<p> Many of the solutions in this section will all use the same condition,
which leaves the matched value in the %2 backreference. %1 is the beginining
of the query string (up to the key of intererest), and %3 is the remainder. This
-condition is a bit complex for flexibility and to avoid double '&&' in the
+condition is a bit complex for flexibility and to avoid double '&&' in the
substitutions.</p>
<ul>
<li>This solution removes the matching key and value:
@@ -682,7 +682,7 @@ RewriteRule "(.*)" - [F]
<li>This solution shows the reverse of the previous ones, copying
path components (perhaps PATH_INFO) from the URL into the query string.
<highlight language="config">
-# The desired URL might be /products/kitchen-sink, and the script expects
+# The desired URL might be /products/kitchen-sink, and the script expects
# /path?products=kitchen-sink.
RewriteRule "^/?path/([^/]+)/([^/]+)" "/path?$1=$2" [PT]
</highlight>