From b559434c053283091501348b2035c5512511b1e6 Mon Sep 17 00:00:00 2001 From: Eric Covener Date: Wed, 19 Sep 2007 13:50:35 +0000 Subject: [PATCH] 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.0.x@577305 13f79535-47bb-0310-9956-ffa450edef68 --- docs/manual/mod/mod_rewrite.html.en | 11 +++++++++++ docs/manual/mod/mod_rewrite.xml | 11 +++++++++++ 2 files changed, 22 insertions(+) diff --git a/docs/manual/mod/mod_rewrite.html.en b/docs/manual/mod/mod_rewrite.html.en index 3b19068c347..56d13927a4a 100644 --- a/docs/manual/mod/mod_rewrite.html.en +++ b/docs/manual/mod/mod_rewrite.html.en @@ -1489,6 +1489,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.

+
+

Note: Enabling rewrites in per-directory context

To enable the rewriting engine for per-directory configuration files, you need to set diff --git a/docs/manual/mod/mod_rewrite.xml b/docs/manual/mod/mod_rewrite.xml index 2265ccca780..9971f67b26f 100644 --- a/docs/manual/mod/mod_rewrite.xml +++ b/docs/manual/mod/mod_rewrite.xml @@ -1512,6 +1512,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.

+
+ Note: Enabling rewrites in per-directory context To enable the rewriting engine for per-directory configuration files, you need to set -- 2.47.2