diff options
author | Rich Bowen <rbowen@apache.org> | 2023-01-11 18:49:05 +0000 |
---|---|---|
committer | Rich Bowen <rbowen@apache.org> | 2023-01-11 18:49:05 +0000 |
commit | af9b0166a995fe1fc84a5c8b4b7ccc76407f9d11 (patch) | |
tree | 412711ef787371b2240d755fad4c89e73b1d9b87 /docs | |
parent | 6438cd7ea8498b5bd76890ed9f63e392d5f4e5fb (diff) | |
download | httpd-af9b0166a995fe1fc84a5c8b4b7ccc76407f9d11.tar.gz |
rebuild rewrite docs
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1906613 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'docs')
-rw-r--r-- | docs/manual/rewrite/intro.html.en.utf8 | 11 | ||||
-rw-r--r-- | docs/manual/rewrite/intro.html.fr.utf8 | 2 | ||||
-rw-r--r-- | docs/manual/rewrite/intro.xml.fr | 2 | ||||
-rw-r--r-- | docs/manual/rewrite/intro.xml.meta | 2 |
4 files changed, 11 insertions, 6 deletions
diff --git a/docs/manual/rewrite/intro.html.en.utf8 b/docs/manual/rewrite/intro.html.en.utf8 index c365ee52be..466340073b 100644 --- a/docs/manual/rewrite/intro.html.en.utf8 +++ b/docs/manual/rewrite/intro.html.en.utf8 @@ -231,7 +231,7 @@ value. <p>The <var>Substitution</var> can itself be one of three things:</p> <dl> -<dt>A full filesystem path to a resource</dt> +<dt>1. A full filesystem path to a resource</dt> <dd> <pre class="prettyprint lang-config">RewriteRule "^/games" "/usr/local/games/web"</pre> @@ -239,17 +239,18 @@ value. like the <code class="directive"><a href="../mod/mod_alias.html#alias">Alias</a></code> directive.</p> </dd> -<dt>A web-path to a resource</dt> +<dt>2. A web-path to a resource</dt> <dd> -<pre class="prettyprint lang-config">RewriteRule "^/foo$" "/bar"</pre> +<pre class="prettyprint lang-config">RewriteRule "^/foo/?$" "/bar"</pre> <p>If <code class="directive"><a href="../mod/core.html#documentroot">DocumentRoot</a></code> is set to <code>/usr/local/apache2/htdocs</code>, then this directive would map requests for <code>http://example.com/foo</code> to the path <code>/usr/local/apache2/htdocs/bar</code>.</p> + </dd> -<dt>An absolute URL</dt> +<dt>3. An absolute URL</dt> <dd> <pre class="prettyprint lang-config">RewriteRule "^/product/view$" "http://site2.example.com/seeproduct.html" [R]</pre> @@ -257,6 +258,8 @@ path <code>/usr/local/apache2/htdocs/bar</code>.</p> </dd> </dl> +<div class="warning">Note that <strong>1</strong> and <strong>2</strong> have exactly the same syntax. The difference between them is that in the case of <strong>1</strong>, the top level of the target path (i.e., <code>/usr/</code>) exists on the filesystem, where as in the case of <strong>2</strong>, it does not. (i.e., there's no <code>/bar/</code> as a root-level directory in the filesystem.)</div> + <p>The <var>Substitution</var> can also contain <em>back-references</em> to parts of the incoming URL-path matched by the <var>Pattern</var>. Consider the following:</p> diff --git a/docs/manual/rewrite/intro.html.fr.utf8 b/docs/manual/rewrite/intro.html.fr.utf8 index 191432d848..f0f3ca6470 100644 --- a/docs/manual/rewrite/intro.html.fr.utf8 +++ b/docs/manual/rewrite/intro.html.fr.utf8 @@ -26,6 +26,8 @@ <p><span>Langues Disponibles: </span><a href="../en/rewrite/intro.html" hreflang="en" rel="alternate" title="English"> en </a> | <a href="../fr/rewrite/intro.html" title="Français"> fr </a></p> </div> +<div class="outofdate">Cette traduction peut être périmée. Vérifiez la version + anglaise pour les changements récents.</div> <p>Ce document est un complément à la <a href="../mod/mod_rewrite.html">documentation de référence</a> du module <code class="module"><a href="../mod/mod_rewrite.html">mod_rewrite</a></code>. Il décrit les concepts de base dont la diff --git a/docs/manual/rewrite/intro.xml.fr b/docs/manual/rewrite/intro.xml.fr index 262ea66344..d70c6878de 100644 --- a/docs/manual/rewrite/intro.xml.fr +++ b/docs/manual/rewrite/intro.xml.fr @@ -1,7 +1,7 @@ <?xml version="1.0" ?> <!DOCTYPE manualpage SYSTEM "../style/manualpage.dtd"> <?xml-stylesheet type="text/xsl" href="../style/manual.fr.xsl"?> -<!-- English Revision: 1866233 --> +<!-- English Revision: 1866233:1906612 (outdated) --> <!-- French translation : Lucien GENTIS --> <!-- Reviewed by : Vincent Deffontaines --> diff --git a/docs/manual/rewrite/intro.xml.meta b/docs/manual/rewrite/intro.xml.meta index 5aaac0fc86..ce245b2841 100644 --- a/docs/manual/rewrite/intro.xml.meta +++ b/docs/manual/rewrite/intro.xml.meta @@ -8,6 +8,6 @@ <variants> <variant>en</variant> - <variant>fr</variant> + <variant outdated="yes">fr</variant> </variants> </metafile> |