]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Fix a typo in an example (missing ")
authorChristophe Jaillet <jailletc36@apache.org>
Mon, 2 Jan 2017 20:14:12 +0000 (20:14 +0000)
committerChristophe Jaillet <jailletc36@apache.org>
Mon, 2 Jan 2017 20:14:12 +0000 (20:14 +0000)
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

index a5f9a574ff5667d9d075e8d9098e849e743e661e..8c82db5d0599b22b4fa84ccd2eeadb88b9e1447f 100644 (file)
@@ -192,7 +192,7 @@ Redirect "/docs/" "http://new.example.com/docs/"
 <highlight language="config">
 RewriteEngine  on
 RewriteBase    "/~quux/"
-RewriteRule    "^foo\.html$"  "foo.cgi" &nbsp; [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">
 &lt;If "%{HTTP_HOST} != 'www.example.com'"&gt;
-       Redirect "/" "http://www.example.com/"
+    Redirect "/" "http://www.example.com/"
 &lt;/If&gt;
 </highlight>
 
@@ -308,7 +308,7 @@ might do the following:</p>
 
 <highlight language="config">
 &lt;If "%{SERVER_PROTOCOL} != 'HTTPS'"&gt;
-       Redirect "/admin/" "https://www.example.com/admin/"
+    Redirect "/admin/" "https://www.example.com/admin/"
 &lt;/If&gt;
 </highlight>
 
@@ -321,7 +321,7 @@ you might use one of the recipes below.</p>
 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 '&amp;&amp;' in the 
+condition is a bit complex for flexibility and to avoid double '&amp;&amp;' 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>