You are viewing a plain text version of this content. The canonical link for it is here.
Posted to docs@httpd.apache.org by Eric Covener <co...@gmail.com> on 2007/09/18 16:48:07 UTC
[PATCH] mod_rewrite tilde expansion
Somewhat surprising side effect of passing around backreferences
starting with ~foo
Index: manual/mod/mod_rewrite.xml
===================================================================
--- manual/mod/mod_rewrite.xml (revision 576932)
+++ manual/mod/mod_rewrite.xml (working copy)
@@ -1532,6 +1532,16 @@
</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 any
<module>mod_userdir</module> configuration.</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>
+
Any suggestion for better wording/formatting/placement appreciated
--
Eric Covener
covener@gmail.com
---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org
Re: [PATCH] mod_rewrite tilde expansion
Posted by Vincent Bray <no...@gmail.com>.
On 18/09/2007, Eric Covener <co...@gmail.com> wrote:
> Somewhat surprising side effect of passing around backreferences
> starting with ~foo
Surprising indeed. I wish I'd known about this earlier dealing with
some #apache questions about mod_userdir inflexibility.
> Any suggestion for better wording/formatting/placement appreciated
Given that this is rather surprising behaviour (repetition of effort
in a modular server), I'd suggest maybe also pointing out that with
behaviour is independent of mod_userdir even being loaded:
When the substitution string begins with a string resembling "/~user"
(via explicit text or backreferences), mod_rewrite performs home
directory expansion. This behaviour is independent of mod_userdir
being loaded or configured.
--
noodl
---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org