]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
document the mod_userdir-like tilde expansion sometimes performed by mod_rewrite
authorEric Covener <covener@apache.org>
Wed, 19 Sep 2007 13:22:29 +0000 (13:22 +0000)
committerEric Covener <covener@apache.org>
Wed, 19 Sep 2007 13:22:29 +0000 (13:22 +0000)
A tilde can sneak into a rule via a backreference and cause some surprising behavior

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@577299 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/mod/mod_rewrite.html.en
docs/manual/mod/mod_rewrite.xml

index 3fe1f2400f773aed514bb48b835aa7cf95f03465..4354c92a140eba1f9872eeb11a4450be21523290 100644 (file)
@@ -1461,6 +1461,17 @@ cannot use <code>$N</code> in the substitution string!
         </dd>
       </dl>
 
+<div class="note"><h3>Home directory expansion</h3>
+<p> When the substitution string begins with a string
+resembling "/~user" (via explicit text or backreferences), mod_rewrite performs
+home directory expansion independent of the presence or configuration
+of <code class="module"><a href="../mod/mod_userdir.html">mod_userdir</a></code></p>
+
+<p> This expansion does not occur when the <em>PT</em>
+flag is used on the <code class="directive"><a href="#rewriterule">RewriteRule</a></code>
+directive.</p>
+</div>
+
 <div class="note"><h3>Per-directory Rewrites</h3>
  
 <p>The rewrite engine may be used in <a href="../howto/htaccess.html">.htaccess</a> files.  To enable the
index ae34070c97b5a722b69b5d04184ec0759ebd6316..b338e55fecc936e0f3c53c4200e01b94ae2b95e8 100644 (file)
@@ -1480,6 +1480,17 @@ cannot use <code>$N</code> in the substitution string!
         </dd>
       </dl>
 
+<note><title>Home directory expansion</title>
+<p> When the substitution string begins with a string
+resembling "/~user" (via explicit text or backreferences), mod_rewrite performs
+home directory expansion independent of the presence or configuration
+of <module>mod_userdir</module></p>
+
+<p> This expansion does not occur when the <em>PT</em>
+flag is used on the <directive module="mod_rewrite">RewriteRule</directive>
+directive.</p>
+</note>
+
 <note><title>Per-directory Rewrites</title>
  
 <p>The rewrite engine may be used in <a