]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Rebuild new rewrite/htaccess guide
authorRich Bowen <rbowen@apache.org>
Fri, 1 May 2026 17:52:49 +0000 (17:52 +0000)
committerRich Bowen <rbowen@apache.org>
Fri, 1 May 2026 17:52:49 +0000 (17:52 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1933680 13f79535-47bb-0310-9956-ffa450edef68

22 files changed:
docs/manual/rewrite/avoid.xml.de
docs/manual/rewrite/avoid.xml.es
docs/manual/rewrite/avoid.xml.fr
docs/manual/rewrite/avoid.xml.ja
docs/manual/rewrite/avoid.xml.ko
docs/manual/rewrite/avoid.xml.tr
docs/manual/rewrite/avoid.xml.zh-cn
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/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 edce0f8d7bf853b7b300498f977e436224e9c59d..0d897ac8fd4ac221b3728958d36d1ac16678d28f 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: 1933071:1933622 (outdated) -->
+<!-- English Revision: 1933071:1933675 (outdated) -->
 
 <!--
  Licensed to the Apache Software Foundation (ASF) under one or more
index 2125c362e07f14e5d3704eb50263b028c3c50e1b..80eae2d2c4003905ec465a85311bef2b079e28a2 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: 1933071:1933622 (outdated) -->
+<!-- English Revision: 1933071:1933675 (outdated) -->
 
 <!--
  Licensed to the Apache Software Foundation (ASF) under one or more
index 479d70c49442c83bc7f8401a4280c4ee5a636cd4..2b94d2162cca4c6ae8133f317b6af211342ccd3d 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: 1933071:1933622 (outdated) -->
+<!-- English Revision: 1933071:1933675 (outdated) -->
 <!-- French translation : Lucien GENTIS -->
 <!-- Reviewed by : Vincent Deffontaines -->
 
index a5325da354779eb3daeaa60909ab29d340ac2fb4..e0840e53234d3a9cef5e9debe52c917d3a00e9ad 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: 1933071:1933622 (outdated) -->
+<!-- English Revision: 1933071:1933675 (outdated) -->
 
 <!--
  Licensed to the Apache Software Foundation (ASF) under one or more
index 9374a49f06aac6f621c90da49726c74a527656ef..5adf2e1e94b624f5061104898bdb9ef2115f3f65 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: 1933071:1933622 (outdated) -->
+<!-- English Revision: 1933071:1933675 (outdated) -->
 
 <!--
  Licensed to the Apache Software Foundation (ASF) under one or more
index 256faaa985012a94d2eb7df5be9f48792aa125ff..45a77ee07a9d28779b86647d246ab9f71e0594c3 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: 1933071:1933622 (outdated) -->
+<!-- English Revision: 1933071:1933675 (outdated) -->
 
 <!--
  Licensed to the Apache Software Foundation (ASF) under one or more
index 1e7834238aed815e79c139af1905fcb67b3df5ca..789a71fe80b138ab30dbe5eb5594c1622171d97a 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: 1933071:1933622 (outdated) -->
+<!-- English Revision: 1933071:1933675 (outdated) -->
 
 <!--
  Licensed to the Apache Software Foundation (ASF) under one or more
index 789bc72b945694cb424b57b422d14ffd4c449fea..f6a432c44c8a678fb2e35cef08e124a307e89461 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:1933671 (outdated) -->
+<!-- English Revision: 1933067:1933675 (outdated) -->
 
 <!--
  Licensed to the Apache Software Foundation (ASF) under one or more
index e4142a95aca5ce0e4f739c5b7c42bc3c76c36340..38ceb66fdfa390fb63335a326e2ee978d91aead9 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:1933671 (outdated) -->
+<!-- English Revision: 1933067:1933675 (outdated) -->
 
 <!--
  Licensed to the Apache Software Foundation (ASF) under one or more
index cccadc2f2d0721752b76b8543c8ddede5257f398..487856f7b0a2befa00eb88025d1bd8a772d40761 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:1933671 (outdated) -->
+<!-- English Revision: 1933067:1933675 (outdated) -->
 <!-- French translation : Lucien GENTIS -->
 <!-- Reviewed by : Vincent Deffontaines -->
 
index 4a8110fc7d7d464588224bc252142a4d4ef446c8..df1907b59f91548aec0d3fc38dac53dca1d0a3b5 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:1933671 (outdated) -->
+<!-- English Revision: 1933067:1933675 (outdated) -->
 
 <!--
  Licensed to the Apache Software Foundation (ASF) under one or more
index aa96e69ea5386cf489fe192421fd05b7afe30016..67895440885b280de96b460022d22c4c984400fb 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:1933671 (outdated) -->
+<!-- English Revision: 1933067:1933675 (outdated) -->
 
 <!--
  Licensed to the Apache Software Foundation (ASF) under one or more
index 52afacd459f2dd58de138733752870a05d59bda2..1a1000701e58b68f42880c17dc64e49c19550ff9 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:1933671 (outdated) -->
+<!-- English Revision: 1933067:1933675 (outdated) -->
 
 <!--
  Licensed to the Apache Software Foundation (ASF) under one or more
index 3005c3793f15810039ce1ce9bf674dc5ae532660..63950ed6277fe74db1f0c6c81d9d1e1f9683770a 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:1933671 (outdated) -->
+<!-- English Revision: 1933067:1933675 (outdated) -->
 
 <!--
  Licensed to the Apache Software Foundation (ASF) under one or more
index 0782f104f83b32385e425f5fc9b6b5c7b64dbe2f..a80d9197400d246d3506976ea3db6fa8a263c488 100644 (file)
@@ -49,11 +49,9 @@ configuration.</div>
 <div id="quickview"><ul id="toc"><li><img alt="" src="../images/down.gif" /> <a href="#old-to-new">From Old to New (internal)</a></li>
 <li><img alt="" src="../images/down.gif" /> <a href="#old-to-new-extern">Rewriting From Old to New (external)</a></li>
 <li><img alt="" src="../images/down.gif" /> <a href="#movehomedirs">Resource Moved to Another Server</a></li>
-<li><img alt="" src="../images/down.gif" /> <a href="#static-to-dynamic">From Static to Dynamic</a></li>
 <li><img alt="" src="../images/down.gif" /> <a href="#backward-compatibility">Backward Compatibility for file extension change</a></li>
 <li><img alt="" src="../images/down.gif" /> <a href="#canonicalhost">Canonical Hostnames</a></li>
 <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="#archive-access-multiplexer">Redirecting to Geographically Distributed Servers</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>
@@ -172,39 +170,6 @@ Redirect "/docs/" "http://new.example.com/docs/"</pre>
     </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="static-to-dynamic" id="static-to-dynamic">From Static to Dynamic</a> <a title="Permanent link" href="#static-to-dynamic" class="permalink">&para;</a></h2>
-
-  
-
-  <dl>
-    <dt>Description:</dt>
-
-    <dd>
-      <p>How can we transform a static page
-      <code>foo.html</code> into a dynamic variant
-      <code>foo.cgi</code> in a seamless way, i.e. without notice
-      by the browser/user.</p>
-    </dd>
-
-    <dt>Solution:</dt>
-
-    <dd>
-      <p>We just rewrite the URL to the CGI-script and force the
-      handler to be <strong>cgi-script</strong> so that it is
-      executed as a CGI program.
-      This way a request to <code>/~quux/foo.html</code>
-      internally leads to the invocation of
-      <code>/~quux/foo.cgi</code>.</p>
-
-<pre class="prettyprint lang-config">RewriteEngine  on
-RewriteBase    "/~quux/"
-RewriteRule    "^foo\.html$"  "foo.cgi"  [H=<strong>cgi-script</strong>]</pre>
-
-    </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="backward-compatibility" id="backward-compatibility">Backward Compatibility for file extension change</a> <a title="Permanent link" href="#backward-compatibility" class="permalink">&para;</a></h2>
@@ -392,62 +357,6 @@ RewriteRule "^"     "-"                                          [PT]</pre>
     </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="archive-access-multiplexer" id="archive-access-multiplexer">Redirecting to Geographically Distributed Servers</a> <a title="Permanent link" href="#archive-access-multiplexer" class="permalink">&para;</a></h2>
-
-  
-
-  <dl>
-    <dt>Description:</dt>
-
-    <dd>
-    <p>We have numerous mirrors of our website, and want to redirect
-    people to the one that is located in the country where they are
-    located.</p>
-    </dd>
-
-    <dt>Solution:</dt>
-
-    <dd>
-    <p>Looking at the hostname of the requesting client, we determine
-    which country they are coming from. If we can't do a lookup on their
-    IP address, we fall back to a default server.</p>
-    <p>We'll use a <code class="directive"><a href="../mod/mod_rewrite.html#rewritemap">RewriteMap</a></code>
-    directive to build a list of servers that we wish to use.</p>
-
-<pre class="prettyprint lang-config">HostnameLookups on
-RewriteEngine on
-RewriteMap    multiplex         "txt:/path/to/map.mirrors"
-RewriteCond  "%{REMOTE_HOST}"   "([a-z]+)$"                [NC]
-RewriteRule  "^/(.*)$"          "${multiplex:<strong>%1</strong>|http://www.example.com/}$1"  [R,L]</pre>
-
-
-<div class="example"><p><code>
-##  map.mirrors -- Multiplexing Map<br />
-<br />
-de        http://www.example.de/<br />
-uk        http://www.example.uk/<br />
-com       http://www.example.com/<br />
-##EOF##
-</code></p></div>
-    </dd>
-
-    <dt>Discussion</dt>
-    <dd>
-    <div class="warning">This ruleset relies on
-    <code class="directive"><a href="../mod/core.html#hostnamelookups">HostNameLookups</a></code>
-    being set <code>on</code>, which can be
-    a significant performance hit.</div>
-
-    <p>The <code class="directive"><a href="../mod/mod_rewrite.html#rewritecond">RewriteCond</a></code>
-    directive captures the last portion of the hostname of the
-    requesting client - the country code - and the following RewriteRule
-    uses that value to look up the appropriate mirror host in the map
-    file.</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="canonicalurl" id="canonicalurl">Canonical URLs</a> <a title="Permanent link" href="#canonicalurl" class="permalink">&para;</a></h2>
index 7bd33faaf07b8d16f85758e456692c010501da54..1ffbffc9e869d07623c9be5a67f45382643e444c 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:1933611 (outdated) -->
+<!-- English Revision: 1933068:1933676 (outdated) -->
 
 <!--
  Licensed to the Apache Software Foundation (ASF) under one or more
index 8d98c2bd919678fe58d0e5a8872f29269df56749..f829d46aeea7bff1862ce82ab26c58b10551ae7b 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:1933611 (outdated) -->
+<!-- English Revision: 1933068:1933676 (outdated) -->
 
 <!--
  Licensed to the Apache Software Foundation (ASF) under one or more
index d35c496074ad6a7a79b8bddcbbcb4175f3288d15..119237e3fbe9623c3fc187f381957de036d6dcfd 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:1933611 (outdated) -->
+<!-- English Revision: 1933068:1933676 (outdated) -->
 <!-- French translation : Lucien GENTIS -->
 <!-- Reviewed by : Vincent Deffontaines -->
 
index a85415c9d541134734b8ccbe0db92076ff9c0217..0c82919b8fa2fe2641a0ceaeef065f7ec52ba79b 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:1933611 (outdated) -->
+<!-- English Revision: 1933068:1933676 (outdated) -->
 
 <!--
  Licensed to the Apache Software Foundation (ASF) under one or more
index 320005ce6ee8fd4e0e00ba4a6e81aa29d36c1e67..b3aca42afeb7334df69953b342a4238577b1cf42 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:1933611 (outdated) -->
+<!-- English Revision: 1933068:1933676 (outdated) -->
 
 <!--
  Licensed to the Apache Software Foundation (ASF) under one or more
index b7f4e61f0e9a9508d0e363ff5ab890f07b6d3785..49aed5bb122f4ba9c058d9fc307f59c747914235 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:1933611 (outdated) -->
+<!-- English Revision: 1933068:1933676 (outdated) -->
 
 <!--
  Licensed to the Apache Software Foundation (ASF) under one or more
index 76ac757373f9a98c6861136804dd6aa345141ae5..4943af711f7bf4d18647766a994102a4f84a1d90 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:1933611 (outdated) -->
+<!-- English Revision: 1933068:1933676 (outdated) -->
 
 <!--
  Licensed to the Apache Software Foundation (ASF) under one or more