From: Eric Covener Date: Wed, 19 Sep 2007 11:39:51 +0000 (+0000) Subject: document the mod_userdir-like tilde expansion sometimes performed by mod_rewrite X-Git-Tag: 2.3.0~1407 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c10c30b87df28df1751bd0c247498019adac19e4;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/trunk@577254 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/mod/mod_rewrite.html.en b/docs/manual/mod/mod_rewrite.html.en index dc762b98db7..2e84901268c 100644 --- a/docs/manual/mod/mod_rewrite.html.en +++ b/docs/manual/mod/mod_rewrite.html.en @@ -1513,6 +1513,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 7f06d7a8d70..ab780896ad9 100644 --- a/docs/manual/mod/mod_rewrite.xml +++ b/docs/manual/mod/mod_rewrite.xml @@ -1532,6 +1532,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