From: Daniel Gruno
diff --git a/docs/manual/rewrite/avoid.html.en b/docs/manual/rewrite/avoid.html.en
index 5185a43752..f66b18f4aa 100644
--- a/docs/manual/rewrite/avoid.html.en
+++ b/docs/manual/rewrite/avoid.html.en
@@ -91,13 +91,13 @@ following:
SetEnvIfNoCase User-Agent ^NameOfBadRobot goaway
<Location /secret/files>
- Order allow,deny
- Allow from all
- Deny from env=goaway
+ Order allow,deny
+ Allow from all
+ Deny from env=goaway
</Location>
diff --git a/docs/manual/rewrite/access.xml b/docs/manual/rewrite/access.xml
index 7e04240db0..2b6c677c5b 100644
--- a/docs/manual/rewrite/access.xml
+++ b/docs/manual/rewrite/access.xml
@@ -187,9 +187,9 @@ RewriteRule ^/secret/files/ - [F]
<VirtualHost *:80>
- ServerName www.example.com
- Redirect / https://www.example.com/
+ ServerName www.example.com
+ Redirect / https://www.example.com/
</VirtualHost >
<VirtualHost *:443>
- ServerName www.example.com
- # ... SSL configuration goes here
+ ServerName www.example.com
+ # ... SSL configuration goes here
</VirtualHost >
@@ -212,7 +212,7 @@ hostname, such as www.example.com
instead of
<If "$req{Host} != 'www.example.com'">
- RedirectMatch (.*) http://www.example.com$1
+ RedirectMatch (.*) http://www.example.com$1
</If>
diff --git a/docs/manual/rewrite/avoid.xml b/docs/manual/rewrite/avoid.xml
index fa79a6fa58..89833228ad 100644
--- a/docs/manual/rewrite/avoid.xml
+++ b/docs/manual/rewrite/avoid.xml
@@ -97,13 +97,13 @@ following:
- Redirect /foo.html /bar.html -+
Redirect /foo.html /bar.html@@ -231,14 +229,12 @@ RewriteRule ^foo\.html$ foo.cgi [H=
#Product to ID configuration - RewriteMap product2id txt:/etc/apache2/productmap.txt - RewriteRule ^/product/(.*) /prods.php?id=${product2id:$1|NOTFOUND} [PT] +RewriteMap product2id txt:/etc/apache2/productmap.txt +RewriteRule ^/product/(.*) /prods.php?id=${product2id:$1|NOTFOUND} [PT]@@ -325,9 +325,9 @@ by many requests. the int function, and then use that in your
RewriteRule
:
- Redirect a URI to an all-lowercase version of itself - RewriteMap lc int:tolower - RewriteRule (.*?[A-Z]+.*) ${lc:$1} [R] +#Redirect a URI to an all-lowercase version of itself +RewriteMap lc int:tolower +RewriteRule (.*?[A-Z]+.*) ${lc:$1} [R]diff --git a/docs/manual/rewrite/rewritemap.xml b/docs/manual/rewrite/rewritemap.xml index e03df54679..7e4c95e69e 100644 --- a/docs/manual/rewrite/rewritemap.xml +++ b/docs/manual/rewrite/rewritemap.xml @@ -135,8 +135,8 @@ may be used, and give examples of each. recipe:#Product to ID configuration - RewriteMap product2id txt:/etc/apache2/productmap.txt - RewriteRule ^/product/(.*) /prods.php?id=${product2id:$1|NOTFOUND} [PT] +RewriteMap product2id txt:/etc/apache2/productmap.txt +RewriteRule ^/product/(.*) /prods.php?id=${product2id:$1|NOTFOUND} [PT] We assume here that the
-prods.php
script knows what @@ -312,9 +312,9 @@ by many requests. the int function, and then use that in yourRewriteRule
:Redirect a URI to an all-lowercase version of itself - RewriteMap lc int:tolower - RewriteRule (.*?[A-Z]+.*) ${lc:$1} [R] + #Redirect a URI to an all-lowercase version of itself +RewriteMap lc int:tolower +RewriteRule (.*?[A-Z]+.*) ${lc:$1} [R]