Mercurial > hg > nginx-site
comparison xml/en/docs/http/converting_rewrite_rules.xml @ 1583:cb7fbecee8e6
Fixed cut&paste error in apache rewrite rules example.
author | Sergey Budnevitch <sb@waeme.net> |
---|---|
date | Wed, 14 Oct 2015 08:10:58 +0300 |
parents | 130fad6dc1b4 |
children |
comparison
equal
deleted
inserted
replaced
1582:8973c7b37854 | 1583:cb7fbecee8e6 |
---|---|
6 <!DOCTYPE article SYSTEM "../../../../dtd/article.dtd"> | 6 <!DOCTYPE article SYSTEM "../../../../dtd/article.dtd"> |
7 | 7 |
8 <article name="Converting rewrite rules" | 8 <article name="Converting rewrite rules" |
9 link="/en/docs/http/converting_rewrite_rules.html" | 9 link="/en/docs/http/converting_rewrite_rules.html" |
10 lang="en" | 10 lang="en" |
11 rev="1"> | 11 rev="2"> |
12 | 12 |
13 | 13 |
14 <section name="A redirect to a main site"> | 14 <section name="A redirect to a main site"> |
15 | 15 |
16 <para> | 16 <para> |
127 | 127 |
128 RewriteCond %{REQUEST_FILENAME}/index.html -f | 128 RewriteCond %{REQUEST_FILENAME}/index.html -f |
129 RewriteRule ^(.*)$ $1/index.html [QSA,L] | 129 RewriteRule ^(.*)$ $1/index.html [QSA,L] |
130 | 130 |
131 RewriteCond %{REQUEST_FILENAME}.html -f | 131 RewriteCond %{REQUEST_FILENAME}.html -f |
132 RewriteRule ^(.*)$ $1/index.html [QSA,L] | 132 RewriteRule ^(.*)$ $1.html [QSA,L] |
133 | 133 |
134 RewriteRule ^/(.*)$ balancer://mongrel_cluster%{REQUEST_URI} [P,QSA,L] | 134 RewriteRule ^/(.*)$ balancer://mongrel_cluster%{REQUEST_URI} [P,QSA,L] |
135 </programlisting> | 135 </programlisting> |
136 | 136 |
137 should be converted to | 137 should be converted to |