]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Rebuild the patches from the weekend
authorRich Bowen <rbowen@apache.org>
Mon, 11 May 2026 12:28:49 +0000 (12:28 +0000)
committerRich Bowen <rbowen@apache.org>
Mon, 11 May 2026 12:28:49 +0000 (12:28 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1934085 13f79535-47bb-0310-9956-ffa450edef68

27 files changed:
docs/manual/mod/mod_proxy_ajp.html.en.utf8
docs/manual/mod/mod_proxy_ajp.xml.fr
docs/manual/mod/mod_proxy_ajp.xml.ja
docs/manual/rewrite/htaccess.html.en.utf8
docs/manual/rewrite/htaccess.xml.de
docs/manual/rewrite/htaccess.xml.es
docs/manual/rewrite/htaccess.xml.fr
docs/manual/rewrite/htaccess.xml.ja
docs/manual/rewrite/htaccess.xml.ko
docs/manual/rewrite/htaccess.xml.tr
docs/manual/rewrite/htaccess.xml.zh-cn
docs/manual/rewrite/index.html.en.utf8
docs/manual/rewrite/index.xml.de
docs/manual/rewrite/index.xml.es
docs/manual/rewrite/index.xml.fr
docs/manual/rewrite/index.xml.ja
docs/manual/rewrite/index.xml.ko
docs/manual/rewrite/index.xml.tr
docs/manual/rewrite/index.xml.zh-cn
docs/manual/rewrite/remapping.html.en.utf8
docs/manual/rewrite/remapping.xml.de
docs/manual/rewrite/remapping.xml.es
docs/manual/rewrite/remapping.xml.fr
docs/manual/rewrite/remapping.xml.ja
docs/manual/rewrite/remapping.xml.ko
docs/manual/rewrite/remapping.xml.tr
docs/manual/rewrite/remapping.xml.zh-cn

index c54b7bfab55f492042b4e5d99549b1167ede2d4a..944e87df7e533dab5233423c970e94de3110d810 100644 (file)
@@ -118,6 +118,12 @@ ProxyPassReverse "/apps/foo" "http://www.example.com/foo"</pre>
     <p>Environment variables whose names have the prefix <code>AJP_</code>
     are forwarded to the origin server as AJP request attributes
     (with the <code>AJP_</code> prefix removed from the name of the key).</p>
+
+    <p>Please be aware that these request attributes are only accessible when
+    directly asking for them using the <code>HttpServletRequest.getAttribute</code>
+    method - Tomcat's implementation of the
+    <a href="https://tomcat.apache.org/tomcat-9.0-doc/api/org/apache/catalina/connector/Request.html#getAttributeNames--"><code>getAttributeNames</code></a>
+    method does not list them as those are handled as internal attributes.</p>
 </div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
 <div class="section">
 <h2><a name="overviewprotocol" id="overviewprotocol">Overview of the protocol</a> <a title="Permanent link" href="#overviewprotocol" class="permalink">&para;</a></h2>
index 1955e36179f0017ee36b9eee51732bbcc8c5ceac..c95c6c3f6c7358d4ea3ffa10fabfbbcdc963727d 100644 (file)
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE modulesynopsis SYSTEM "../style/modulesynopsis.dtd">
 <?xml-stylesheet type="text/xsl" href="../style/manual.fr.xsl"?>
-<!-- English Revision: 1886996:1933739 (outdated) -->
+<!-- English Revision: 1886996:1934059 (outdated) -->
 <!-- French translation : Lucien GENTIS -->
 <!-- Reviewed by : Vincent Deffontaines -->
 
index 176d928d63cdb1508f75c1ed65aba3dbec0650ea..5e46c34327a377dce3fde519a6d0651993dad29b 100644 (file)
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8" ?>
 <!DOCTYPE modulesynopsis SYSTEM "../style/modulesynopsis.dtd">
 <?xml-stylesheet type="text/xsl" href="../style/manual.ja.xsl"?>
-<!-- English Revision: 669473:1933739 (outdated) -->
+<!-- English Revision: 669473:1934059 (outdated) -->
 
 <!--
  Licensed to the Apache Software Foundation (ASF) under one or more
index 440c3094ed961aeaa389050a1d4dfd1fcd3d86d3..a7ba39a117c19e67e9f61173577eb32e460deeb9 100644 (file)
@@ -7,7 +7,7 @@
               This file is generated from xml source: DO NOT EDIT
         XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
       -->
-<title>mod_rewrite and .htaccess files - Apache HTTP Server Version 2.5</title>
+<title>Per-directory Rewrites - Apache HTTP Server Version 2.5</title>
 <link href="../style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" />
 <link href="../style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" />
 <link href="../style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" /><link rel="stylesheet" type="text/css" href="../style/css/prettify.css" />
@@ -21,7 +21,7 @@
 <img alt="" src="../images/feather.png" /></div>
 <div class="up"><a href="./"><img title="&lt;-" alt="&lt;-" src="../images/left.gif" /></a></div>
 <div id="path">
-<a href="http://www.apache.org/">Apache</a> &gt; <a href="http://httpd.apache.org/">HTTP Server</a> &gt; <a href="http://httpd.apache.org/docs/">Documentation</a> &gt; <a href="../">Version 2.5</a> &gt; <a href="./">Rewrite</a></div><div id="page-content"><div id="preamble"><h1>mod_rewrite and .htaccess files</h1>
+<a href="http://www.apache.org/">Apache</a> &gt; <a href="http://httpd.apache.org/">HTTP Server</a> &gt; <a href="http://httpd.apache.org/docs/">Documentation</a> &gt; <a href="../">Version 2.5</a> &gt; <a href="./">Rewrite</a></div><div id="page-content"><div id="preamble"><h1>Per-directory Rewrites</h1>
 <div class="toplang">
 <p><span>Available Languages: </span><a href="../de/rewrite/htaccess.html" hreflang="de" rel="alternate" title="Deutsch">&nbsp;de&nbsp;</a> |
 <a href="../en/rewrite/htaccess.html" title="English">&nbsp;en&nbsp;</a> |
@@ -168,7 +168,7 @@ RewriteRule "^(.*)$" "index.php" [L]</pre>
 
 <div class="note">For this particular use case - routing all unmatched
 requests to a front controller - the
-<a href="remapping.html#fallback-resource">FallbackResource</a> directive
+<a href="avoid.html#fallback-resource">FallbackResource</a> directive
 is a simpler and more efficient alternative to mod_rewrite.</div>
 
 <p>Without the <code>RewriteBase "/myapp/"</code> line, the rewritten
index 42913c97819aa6d855670b4deffd9b94c69758fc..98295e1beee3ee87911313a62c6816826a9bedcb 100644 (file)
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8" ?>
 <!DOCTYPE manualpage SYSTEM "../style/manualpage.dtd">
 <?xml-stylesheet type="text/xsl" href="../style/manual.de.xsl"?>
-<!-- English Revision: 1933067:1933718 (outdated) -->
+<!-- English Revision: 1933067:1934084 (outdated) -->
 
 <!--
  Licensed to the Apache Software Foundation (ASF) under one or more
index 4911dbd75500005d418ead6c3d8b4ad4653897f1..6aabb6d947987edfd32bee18ad3272db732065a4 100644 (file)
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8" ?>
 <!DOCTYPE manualpage SYSTEM "../style/manualpage.dtd">
 <?xml-stylesheet type="text/xsl" href="../style/manual.es.xsl"?>
-<!-- English Revision: 1933067:1933718 (outdated) -->
+<!-- English Revision: 1933067:1934084 (outdated) -->
 
 <!--
  Licensed to the Apache Software Foundation (ASF) under one or more
index 7fbedf4b5d5272ab206242f56d2517113ba81113..701e2fc67336c0bf7e39d8fe14023b9e58901c9b 100644 (file)
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE manualpage SYSTEM "../style/manualpage.dtd">
 <?xml-stylesheet type="text/xsl" href="../style/manual.fr.xsl"?>
-<!-- English Revision: 1933067:1933718 (outdated) -->
+<!-- English Revision: 1933067:1934084 (outdated) -->
 <!-- French translation : Lucien GENTIS -->
 <!-- Reviewed by : Vincent Deffontaines -->
 
index ed29af91c1f32430bbab521cf391a30cd8309cf2..13f2f6f2718f3b7ddf9e0924303a0f6efcede334 100644 (file)
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8" ?>
 <!DOCTYPE manualpage SYSTEM "../style/manualpage.dtd">
 <?xml-stylesheet type="text/xsl" href="../style/manual.ja.xsl"?>
-<!-- English Revision: 1933067:1933718 (outdated) -->
+<!-- English Revision: 1933067:1934084 (outdated) -->
 
 <!--
  Licensed to the Apache Software Foundation (ASF) under one or more
index ae2f25f4e04bd649d46c1b49a4d185419214c10c..bd71f27a57ebb0df2d5995d9cafa9cf7de840c0b 100644 (file)
@@ -1,7 +1,7 @@
 <?xml version='1.0' encoding='EUC-KR' ?>
 <!DOCTYPE manualpage SYSTEM "../style/manualpage.dtd">
 <?xml-stylesheet type="text/xsl" href="../style/manual.ko.xsl"?>
-<!-- English Revision: 1933067:1933718 (outdated) -->
+<!-- English Revision: 1933067:1934084 (outdated) -->
 
 <!--
  Licensed to the Apache Software Foundation (ASF) under one or more
index e9d812a009352a75052535b1f494c974b2468961..7a5cd06e4b5d85a250f5b08472257c1d36d1f76d 100644 (file)
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8" ?>
 <!DOCTYPE manualpage SYSTEM "../style/manualpage.dtd">
 <?xml-stylesheet type="text/xsl" href="../style/manual.tr.xsl"?>
-<!-- English Revision: 1933067:1933718 (outdated) -->
+<!-- English Revision: 1933067:1934084 (outdated) -->
 
 <!--
  Licensed to the Apache Software Foundation (ASF) under one or more
index d1ef96f59dbdf3a2eca06a117ea5f8eaaba7304a..8766545b4740b07df9bc601ed43fd4dc2872c481 100644 (file)
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8" ?>
 <!DOCTYPE manualpage SYSTEM "../style/manualpage.dtd">
 <?xml-stylesheet type="text/xsl" href="../style/manual.zh-cn.xsl"?>
-<!-- English Revision: 1933067:1933718 (outdated) -->
+<!-- English Revision: 1933067:1934084 (outdated) -->
 
 <!--
  Licensed to the Apache Software Foundation (ASF) under one or more
index 4220a05d7ea6ad1572351e4f30f20e423393df68..82831688adaac095271299bebcc08cdb1d09370f 100644 (file)
     expression</a> rules. This allows you to map arbitrary URLs onto
     your internal URL structure in any way you like.</p>
 
-      <p>It supports an unlimited number of rules and an
-      unlimited number of attached rule conditions for each rule to
-      provide a really flexible and powerful URL manipulation
-      mechanism. The URL manipulations can depend on various tests:
-      server variables, environment variables, HTTP
-      headers, time stamps, external database lookups, and various other
-      external programs or handlers, can be used to achieve granular URL
-      matching.</p>
+    <p>This guide supplements <a href="../mod/mod_rewrite.html">the
+    reference manual</a> with annotated examples, conceptual
+    explanations, and practical advice. It is organized as follows:</p>
 
-      <p>Rewrite rules can operate on the full URLs, including the path-info
-      and query string portions, and may be used in per-server context
-      (<code>httpd.conf</code>), per-virtualhost context (<code class="directive"><a href="../mod/core.html#virtualhost">&lt;VirtualHost&gt;</a></code> blocks), or
-      <a class="glossarylink" href="../glossary.html#perdirectory" title="see glossary">per-directory context</a>
-      (<code>.htaccess</code> files and <code class="directive"><a href="../mod/core.html#directory">&lt;Directory&gt;</a></code> blocks). The
-      rewritten result can lead to further rules, internal
-      sub-processing, external request redirection, or proxy
-      passthrough, depending on what <a href="flags.html">flags</a> you
-      attach to the rules.</p>
+<dl>
+<dt><a href="intro.html">Introduction</a></dt>
+<dd>Core concepts: regular expression syntax, RewriteRule and
+RewriteCond basics, and how mod_rewrite fits into the request
+processing lifecycle.</dd>
 
-      <p>Since <code class="module"><a href="../mod/mod_rewrite.html">mod_rewrite</a></code> is so powerful, it can indeed be rather
-      complex. This guide supplements the <a href="../mod/mod_rewrite.html">reference documentation</a>, and
-      attempts to allay some of that complexity, and provide highly
-      annotated examples of common scenarios that you may handle with
-      <code class="module"><a href="../mod/mod_rewrite.html">mod_rewrite</a></code>. But we also attempt to show you when you should not
-      use <code class="module"><a href="../mod/mod_rewrite.html">mod_rewrite</a></code>, and use other standard Apache features instead,
-      thus avoiding this unnecessary complexity.</p>
+<dt><a href="htaccess.html">Per-directory Rewrites</a></dt>
+<dd>The key differences between using rewrite rules in server
+configuration versus <a class="glossarylink" href="../glossary.html#perdirectory" title="see glossary">per-directory</a> 
+context, including path stripping, RewriteBase, and the looping behavior 
+of the [L] flag.</dd>
 
+<dt><a href="flags.html">RewriteRule Flags</a></dt>
+<dd>A complete reference for all flags that can modify the behavior of
+a RewriteRule, with examples for each.</dd>
 
-<ul>
-<li><a href="../mod/mod_rewrite.html">mod_rewrite reference
-documentation</a></li>
-<li><a href="intro.html">Introduction to regular expressions and mod_rewrite</a></li>
-<li><a href="htaccess.html">mod_rewrite in .htaccess files</a></li>
-<li><a href="flags.html">RewriteRule Flags</a></li>
-<li><a href="rewritemap.html">Using RewriteMap</a></li>
-<li><a href="avoid.html">When <strong>NOT</strong> to use mod_rewrite</a></li>
-<li><a href="remapping.html">Using mod_rewrite for redirection and remapping of URLs</a></li>
-<li><a href="vhosts.html">Dynamic virtual hosts with mod_rewrite</a></li>
-<li><a href="tech.html">Technical details</a></li>
-</ul>
+<dt><a href="rewritemap.html">Using RewriteMap</a></dt>
+<dd>How to use external lookup sources — text files, DBM databases,
+SQL queries, and internal functions — to drive your rewrite
+rules.</dd>
+
+<dt><a href="remapping.html">Redirection and Remapping</a></dt>
+<dd>Recipes for common tasks: HTTPS redirection, canonical hostnames,
+trailing slash normalization, front-controller routing, and more.</dd>
+
+<dt><a href="vhosts.html">Dynamic Virtual Hosts</a></dt>
+<dd>Using mod_rewrite to dynamically map hostnames to document roots
+without individual VirtualHost blocks.</dd>
+
+<dt><a href="avoid.html">When NOT to use mod_rewrite</a></dt>
+<dd>Many common tasks are better accomplished with simpler directives.
+This document shows the alternatives and when to prefer them.</dd>
+
+<dt><a href="tech.html">Technical Details</a></dt>
+<dd>How mod_rewrite hooks into the Apache request processing phases,
+and the order in which rules and conditions are evaluated.</dd>
+</dl>
 </div>
-<div id="quickview"><h3>See also</h3><ul class="seealso"><li><a href="../mod/mod_rewrite.html">mod_rewrite reference
-documentation</a></li><li><a href="../urlmapping.html">Mapping URLs to the Filesystem</a></li><li><a href="https://cwiki.apache.org/confluence/display/httpd/Rewrite">mod_rewrite
+<div id="quickview"><h3>See also</h3><ul class="seealso"><li><a href="../mod/mod_rewrite.html">The Reference Manual</a></li><li><a href="../urlmapping.html">Mapping URLs to the Filesystem</a></li><li><a href="https://cwiki.apache.org/confluence/display/httpd/Rewrite">mod_rewrite
 wiki</a></li><li><a href="../glossary.html">Glossary</a></li></ul></div>
 </div>
 <div class="bottomlang">
index ff6e359cc355f0e3bdd629cb4bd145fde9025384..5c57310e40b4527bba856580f2a5908200c21c33 100644 (file)
@@ -1,7 +1,7 @@
 <?xml version='1.0' encoding='UTF-8' ?>
 <!DOCTYPE manualpage SYSTEM "../style/manualpage.dtd">
 <?xml-stylesheet type="text/xsl" href="../style/manual.de.xsl"?>
-<!-- English Revision: 1933438:1933955 (outdated) -->
+<!-- English Revision: 1933438:1934083 (outdated) -->
 
 <!--
  Licensed to the Apache Software Foundation (ASF) under one or more
index f4bdb15f524acb30f77bef29e1646631cb3c9b19..350d5da0f1493f0505a8b72efeb3403b669fbe41 100644 (file)
@@ -1,7 +1,7 @@
 <?xml version='1.0' encoding='UTF-8' ?>
 <!DOCTYPE manualpage SYSTEM "../style/manualpage.dtd">
 <?xml-stylesheet type="text/xsl" href="../style/manual.es.xsl"?>
-<!-- English Revision: 1933438:1933955 (outdated) -->
+<!-- English Revision: 1933438:1934083 (outdated) -->
 
 <!--
  Licensed to the Apache Software Foundation (ASF) under one or more
index 4fa362e48486b3e1fe6fcb898b5f80af1ad85eb1..083f616c249200fcdb21e5a3bc088d53f2ba7fb9 100644 (file)
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8" ?>
 <!DOCTYPE manualpage SYSTEM "../style/manualpage.dtd">
 <?xml-stylesheet type="text/xsl" href="../style/manual.fr.xsl"?>
-<!-- English Revision: 1933438:1933955 (outdated) -->
+<!-- English Revision: 1933438:1934083 (outdated) -->
 <!-- French translation : Lucien GENTIS -->
 <!-- Reviewed by : Vincent Deffontaines -->
 
index 98fa0d26a157487742efaa36480edad5acf3238c..731e06018975f169fb52f69955a8d0ce539904ec 100644 (file)
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8" ?>
 <!DOCTYPE manualpage SYSTEM "../style/manualpage.dtd">
 <?xml-stylesheet type="text/xsl" href="../style/manual.ja.xsl"?>
-<!-- English Revision: 1933438:1933955 (outdated) -->
+<!-- English Revision: 1933438:1934083 (outdated) -->
 
 <!--
  Licensed to the Apache Software Foundation (ASF) under one or more
index 30b80be5c66d781fc03b9b06110eedeb9368542c..2f8c72ad1d9cba3af12d87a77487f8aa8b22164b 100644 (file)
@@ -1,7 +1,7 @@
 <?xml version='1.0' encoding='EUC-KR' ?>
 <!DOCTYPE manualpage SYSTEM "../style/manualpage.dtd">
 <?xml-stylesheet type="text/xsl" href="../style/manual.ko.xsl"?>
-<!-- English Revision: 1933438:1933955 (outdated) -->
+<!-- English Revision: 1933438:1934083 (outdated) -->
 
 <!--
  Licensed to the Apache Software Foundation (ASF) under one or more
index 465b5303c0174b2127cc462120b514c1a590037e..703982bebf976d924a3da717ca87acb3a929f8b4 100644 (file)
@@ -1,7 +1,7 @@
 <?xml version='1.0' encoding='UTF-8' ?>
 <!DOCTYPE manualpage SYSTEM "../style/manualpage.dtd">
 <?xml-stylesheet type="text/xsl" href="../style/manual.tr.xsl"?>
-<!-- English Revision: 1933438:1933955 (outdated) -->
+<!-- English Revision: 1933438:1934083 (outdated) -->
 
 <!--
  Licensed to the Apache Software Foundation (ASF) under one or more
index f7339abf6663ed63f2183ced55f6cc279ed3454e..be36f587f1a11a8729d25ee146bdf605cbb21130 100644 (file)
@@ -1,7 +1,7 @@
 <?xml version='1.0' encoding='UTF-8' ?>
 <!DOCTYPE manualpage SYSTEM "../style/manualpage.dtd">
 <?xml-stylesheet type="text/xsl" href="../style/manual.zh-cn.xsl"?>
-<!-- English Revision: 1933438:1933955 (outdated) -->
+<!-- English Revision: 1933438:1934083 (outdated) -->
 
 <!--
  Licensed to the Apache Software Foundation (ASF) under one or more
index 59587be7271fbbb07b661c918a098d238885fa17..e31b587ea43bda00025a69659df5df84b5e9bac4 100644 (file)
@@ -53,7 +53,6 @@ including detailed descriptions of how each works.</p>
 <li><img alt="" src="../images/down.gif" /> <a href="#multipledirs">Search for pages in more than one directory</a></li>
 <li><img alt="" src="../images/down.gif" /> <a href="#canonicalurl">Canonical URLs</a></li>
 <li><img alt="" src="../images/down.gif" /> <a href="#moveddocroot">Moved <code>DocumentRoot</code></a></li>
-<li><img alt="" src="../images/down.gif" /> <a href="#fallback-resource">Fallback Resource</a></li>
 <li><img alt="" src="../images/down.gif" /> <a href="#rewrite-query">Rewrite query string</a></li>
 <li><img alt="" src="../images/down.gif" /> <a href="#structuredhomedirs">Structured Userdirs</a></li>
 <li><img alt="" src="../images/down.gif" /> <a href="#redirectanchors">Redirecting Anchors</a></li>
@@ -260,51 +259,18 @@ RewriteRule "^(.*)" "https://%1$1" [R=301,L]</pre>
 
   
 
-  <dl>
-    <dt>Description:</dt>
-
-    <dd>
-      <p>Most modern web frameworks (PHP, Python, Ruby, etc.) use a
-      single entry point - often called a "front controller" - that
-      handles all requests. URLs like <code>/products/widget</code>
-      are routed to <code>index.php</code> (or equivalent), which
-      parses the URL internally.</p>
-    </dd>
-
-    <dt>Solution:</dt>
-
-    <dd>
-
-    <div class="note">For this use case, the
-    <code class="directive"><a href="../mod/mod_dir.html#fallbackresource">FallbackResource</a></code> directive is
-    almost always the better choice. See the
-    <a href="#fallback-resource">Fallback Resource</a> recipe above.</div>
-
-      <p>If you need <code class="module"><a href="../mod/mod_rewrite.html">mod_rewrite</a></code> (for example, to add
-      additional conditions), the standard pattern is:</p>
-
-<pre class="prettyprint lang-config">RewriteEngine On
-RewriteCond "%{REQUEST_FILENAME}" !-f
-RewriteCond "%{REQUEST_FILENAME}" !-d
-RewriteRule "^(.*)$" "/index.php" [L]</pre>
+  <p>Most modern web frameworks route all requests through a single
+  entry point (a "front controller"). The
+  <code class="directive"><a href="../mod/mod_dir.html#fallbackresource">FallbackResource</a></code> directive
+  handles this more simply and efficiently than
+  <code class="module"><a href="../mod/mod_rewrite.html">mod_rewrite</a></code>. See <a href="avoid.html#fallback-resource">When NOT to use mod_rewrite</a>
+  for the recommended approach.</p>
 
-
-      <p>The <code>!-f</code> and <code>!-d</code> conditions skip the
-      rule for requests that map to an existing file or directory, so
-      static assets (images, CSS, JavaScript) are still served
-      directly.</p>
-    </dd>
-
-    <dt>Discussion:</dt>
-
-    <dd>
-      <p>In <code>.htaccess</code> context, consider using
-      <code>[END]</code> instead of <code>[L]</code> to avoid
-      reprocessing loops. See the
-      <a href="htaccess.html#loops">.htaccess looping</a> discussion
-      for details.</p>
-    </dd>
-  </dl>
+  <p>If you genuinely need <code class="module"><a href="../mod/mod_rewrite.html">mod_rewrite</a></code> for this (for
+  example, to add conditions beyond "file doesn't exist"), see the
+  <a href="htaccess.html#rewritebase">per-directory rewrites</a>
+  document for an annotated example that also demonstrates
+  <code class="directive"><a href="../mod/mod_rewrite.html#rewritebase">RewriteBase</a></code> usage.</p>
 
 </div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
 <div class="section">
@@ -689,61 +655,6 @@ rather than rewriting URLs.</p>
 </dd>
 </dl>
 
-</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
-<div class="section">
-<h2><a name="fallback-resource" id="fallback-resource">Fallback Resource</a> <a title="Permanent link" href="#fallback-resource" class="permalink">&para;</a></h2>
-
-
-<dl>
-<dt>Description:</dt>
-<dd>You want a single resource (say, a certain file, like index.php) to
-handle all requests that come to a particular directory, except those
-that should go to an existing resource such as an image, or a css file.</dd>
-
-<dt>Solution:</dt>
-<dd>
-<p>As of version 2.2.16, you should use the <code class="directive"><a href="../mod/mod_dir.html#fallbackresource">FallbackResource</a></code> directive for this:</p>
-
-<pre class="prettyprint lang-config">&lt;Directory "/var/www/my_blog"&gt;
-  FallbackResource index.php
-&lt;/Directory&gt;</pre>
-
-
-<p>However, in earlier versions of Apache, or if your needs are more
-complicated than this, you can use a variation of the following rewrite
-set to accomplish the same thing:</p>
-
-<pre class="prettyprint lang-config">&lt;Directory "/var/www/my_blog"&gt;
-  RewriteBase "/my_blog"
-
-  RewriteCond "/var/www/my_blog/%{REQUEST_FILENAME}" !-f
-  RewriteCond "/var/www/my_blog/%{REQUEST_FILENAME}" !-d
-  RewriteRule "^"                                    "index.php" [PT]
-&lt;/Directory&gt;</pre>
-
-
-<p>If, on the other hand, you wish to pass the requested URI as a query
-string argument to index.php, you can replace that RewriteRule with:</p>
-
-<pre class="prettyprint lang-config">RewriteRule "(.*)" "index.php?$1" [PT,QSA]</pre>
-
-
-<p>Note that these rulesets can be used in a <code>.htaccess</code>
-file, as well as in a &lt;Directory&gt; block.</p>
-
-</dd>
-
-<dt>Discussion:</dt>
-
-<dd>
-<p>The <code class="directive"><a href="../mod/mod_dir.html#fallbackresource">FallbackResource</a></code> directive
-is almost always the better choice for this use case. See the
-<a href="avoid.html#fallback-resource">When not to use mod_rewrite</a>
-document for a simpler one-line alternative.</p>
-</dd>
-
-</dl>
-
 </div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
 <div class="section">
 <h2><a name="rewrite-query" id="rewrite-query">Rewrite query string</a> <a title="Permanent link" href="#rewrite-query" class="permalink">&para;</a></h2>
index 31cc66b54b3baa719400dd76f88e2cd9f84e7fcc..246315b1d3ab910be060ea167b3a33fbc9bb9791 100644 (file)
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8" ?>
 <!DOCTYPE manualpage SYSTEM "../style/manualpage.dtd">
 <?xml-stylesheet type="text/xsl" href="../style/manual.de.xsl"?>
-<!-- English Revision: 1933068:1933782 (outdated) -->
+<!-- English Revision: 1933068:1934084 (outdated) -->
 
 <!--
  Licensed to the Apache Software Foundation (ASF) under one or more
index d2cfb1885402ef1be3ad532ee85c549fdd659014..f03269f987f4ebd3689a6369790bc50e68f48b5a 100644 (file)
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8" ?>
 <!DOCTYPE manualpage SYSTEM "../style/manualpage.dtd">
 <?xml-stylesheet type="text/xsl" href="../style/manual.es.xsl"?>
-<!-- English Revision: 1933068:1933782 (outdated) -->
+<!-- English Revision: 1933068:1934084 (outdated) -->
 
 <!--
  Licensed to the Apache Software Foundation (ASF) under one or more
index 28a53dbc8116bf123a999107d7aab4c1c5daf8a8..53c964426ef80e20ccd9bf24f3fb89459c430101 100644 (file)
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE manualpage SYSTEM "../style/manualpage.dtd">
 <?xml-stylesheet type="text/xsl" href="../style/manual.fr.xsl"?>
-<!-- English Revision: 1933068:1933782 (outdated) -->
+<!-- English Revision: 1933068:1934084 (outdated) -->
 <!-- French translation : Lucien GENTIS -->
 <!-- Reviewed by : Vincent Deffontaines -->
 
index fb5e140ad633cf93c6fc077c1e31feb76c132927..f192a2b30e5c27e28b9d3e66c0693bd556660cd9 100644 (file)
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8" ?>
 <!DOCTYPE manualpage SYSTEM "../style/manualpage.dtd">
 <?xml-stylesheet type="text/xsl" href="../style/manual.ja.xsl"?>
-<!-- English Revision: 1933068:1933782 (outdated) -->
+<!-- English Revision: 1933068:1934084 (outdated) -->
 
 <!--
  Licensed to the Apache Software Foundation (ASF) under one or more
index efc256910f68df9190071c03c4c7a0844b6b0feb..3ac8ef3107604bb8ca4806f89378956351e9f241 100644 (file)
@@ -1,7 +1,7 @@
 <?xml version='1.0' encoding='EUC-KR' ?>
 <!DOCTYPE manualpage SYSTEM "../style/manualpage.dtd">
 <?xml-stylesheet type="text/xsl" href="../style/manual.ko.xsl"?>
-<!-- English Revision: 1933068:1933782 (outdated) -->
+<!-- English Revision: 1933068:1934084 (outdated) -->
 
 <!--
  Licensed to the Apache Software Foundation (ASF) under one or more
index b4bcf481b7bff2c985bf13d4ab3b33b61332f927..7d0bde8c6585a8ea292572a593e00786474515de 100644 (file)
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8" ?>
 <!DOCTYPE manualpage SYSTEM "../style/manualpage.dtd">
 <?xml-stylesheet type="text/xsl" href="../style/manual.tr.xsl"?>
-<!-- English Revision: 1933068:1933782 (outdated) -->
+<!-- English Revision: 1933068:1934084 (outdated) -->
 
 <!--
  Licensed to the Apache Software Foundation (ASF) under one or more
index af955c6fda63e08584e616d326647bbaa077af50..472d1f58e704aa775f1ec927b4f849f34d260402 100644 (file)
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8" ?>
 <!DOCTYPE manualpage SYSTEM "../style/manualpage.dtd">
 <?xml-stylesheet type="text/xsl" href="../style/manual.zh-cn.xsl"?>
-<!-- English Revision: 1933068:1933782 (outdated) -->
+<!-- English Revision: 1933068:1934084 (outdated) -->
 
 <!--
  Licensed to the Apache Software Foundation (ASF) under one or more