From: Eric Covener Date: Wed, 19 Sep 2007 13:22:29 +0000 (+0000) Subject: document the mod_userdir-like tilde expansion sometimes performed by mod_rewrite X-Git-Tag: 2.2.7~390 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=49c1ecf3acccf7f75eb8ad8fc9bd2169b888c323;p=thirdparty%2Fapache%2Fhttpd.git document the mod_userdir-like tilde expansion sometimes performed by mod_rewrite 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 --- diff --git a/docs/manual/mod/mod_rewrite.html.en b/docs/manual/mod/mod_rewrite.html.en index 3fe1f2400f7..4354c92a140 100644 --- a/docs/manual/mod/mod_rewrite.html.en +++ b/docs/manual/mod/mod_rewrite.html.en @@ -1461,6 +1461,17 @@ cannot use $N in the substitution string! +

Home directory expansion

+

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 mod_userdir

+ +

This expansion does not occur when the PT +flag is used on the RewriteRule +directive.

+
+

Per-directory Rewrites

The rewrite engine may be used in .htaccess files. To enable the diff --git a/docs/manual/mod/mod_rewrite.xml b/docs/manual/mod/mod_rewrite.xml index ae34070c97b..b338e55fecc 100644 --- a/docs/manual/mod/mod_rewrite.xml +++ b/docs/manual/mod/mod_rewrite.xml @@ -1480,6 +1480,17 @@ cannot use $N in the substitution string! +Home directory expansion +

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 mod_userdir

+ +

This expansion does not occur when the PT +flag is used on the RewriteRule +directive.

+ + Per-directory Rewrites

The rewrite engine may be used in