From 14e1a649a0b3bef4a6d4f58a0e0e40798e53f663 Mon Sep 17 00:00:00 2001
From: Christophe Jaillet
Date: Mon, 2 Jan 2017 20:14:12 +0000
Subject: [PATCH] Fix a typo in an example (missing ") The typo is already
fixed in trunk
+ synch a bit with trunk (tab vs space, trailing space)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1777005 13f79535-47bb-0310-9956-ffa450edef68
---
docs/manual/rewrite/remapping.xml | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/docs/manual/rewrite/remapping.xml b/docs/manual/rewrite/remapping.xml
index a5f9a574ff..8c82db5d05 100644
--- a/docs/manual/rewrite/remapping.xml
+++ b/docs/manual/rewrite/remapping.xml
@@ -192,7 +192,7 @@ Redirect "/docs/" "http://new.example.com/docs/"
RewriteEngine on
RewriteBase "/~quux/"
-RewriteRule "^foo\.html$" "foo.cgi" [H=cgi-script]
+RewriteRule "^foo\.html$" "foo.cgi" [H=cgi-script]
@@ -299,7 +299,7 @@ directive:
<If "%{HTTP_HOST} != 'www.example.com'">
- Redirect "/" "http://www.example.com/"
+ Redirect "/" "http://www.example.com/"
</If>
@@ -308,7 +308,7 @@ might do the following:
<If "%{SERVER_PROTOCOL} != 'HTTPS'">
- Redirect "/admin/" "https://www.example.com/admin/"
+ Redirect "/admin/" "https://www.example.com/admin/"
</If>
@@ -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]
And for a site running on port 80
@@ -647,7 +647,7 @@ of the URL.
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.
- This solution removes the matching key and value:
@@ -682,7 +682,7 @@ RewriteRule "(.*)" - [F]
- This solution shows the reverse of the previous ones, copying
path components (perhaps PATH_INFO) from the URL into the query string.
-# 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]
--
2.40.0