# HG changeset patch # User Ruslan Ermilov # Date 1317639582 0 # Node ID d1e8781b9c5ff54f12ad7badc44f296c763a0a63 # Parent 9d544687d02c1dc72f898d030a45e915bca2dbe2 Fixing the wording. diff -r 9d544687d02c -r d1e8781b9c5f xml/en/docs/http/converting_rewrite_rules.xml --- a/xml/en/docs/http/converting_rewrite_rules.xml Mon Oct 03 10:47:56 2011 +0000 +++ b/xml/en/docs/http/converting_rewrite_rules.xml Mon Oct 03 10:59:42 2011 +0000 @@ -10,14 +10,14 @@ People who during their shared hosting life used to configure everything using only Apache’s .htaccess files, -translate usually the following rules: +usually translate the following rules: RewriteCond %{HTTP_HOST} nginx.org RewriteRule (.*) http://www.nginx.org$1 -in something like this: +to something like this: server { @@ -56,8 +56,9 @@
-Another example, instead of backward logic: all that is not -nginx.com and is not www.nginx.com: +Another example. +Instead of the “upside-down” logic “all that is not +nginx.com and is not www.nginx.com”: RewriteCond %{HTTP_HOST} !nginx.com @@ -65,8 +66,8 @@ RewriteRule (.*) http://www.nginx.com$1 -you should define just nginx.com, www.nginx.com, -and anything else: +one should simply define nginx.com, www.nginx.com, +and “everything else”: server {