From 7b163966a7bc06d15eb48815ee5bd6096b1632de Mon Sep 17 00:00:00 2001 From: Eric Covener Date: Thu, 6 Jan 2011 02:12:01 +0000 Subject: [PATCH] clarify RewriteBase as action for closed PR50546 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1055710 13f79535-47bb-0310-9956-ffa450edef68 --- docs/manual/mod/mod_rewrite.html.en | 14 +++++++++----- docs/manual/mod/mod_rewrite.xml | 10 +++++++--- 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/docs/manual/mod/mod_rewrite.html.en b/docs/manual/mod/mod_rewrite.html.en index 136e629c49..cd4118dd26 100644 --- a/docs/manual/mod/mod_rewrite.html.en +++ b/docs/manual/mod/mod_rewrite.html.en @@ -113,16 +113,20 @@ URLs on the fly Module:mod_rewrite

The RewriteBase directive explicitly - sets the base URL-path (not filesystem directory path!) for per-directory rewrites. + sets the base URL-path (not filesystem directory path!) for per-directory rewrites + that result in the substitution of a relative path. When you use a RewriteRule in a .htaccess file, mod_rewrite strips off the local directory prefix before processing, then rewrites the rest of the URL. When the rewrite is completed, mod_rewrite - automatically adds the local directory prefix back on to the path.

+ automatically adds the local directory prefix (or the + RewriteBase when set) back on to the substitution + before handing it back to the core of the server as if it were the original + URL.

This directive is required for per-directory rewrites whose context is a directory made available via the Alias - directive.

+ directive, when the substitution uses a relative path.

If your URL path does not exist verbatim on the filesystem, or isn't directly under your DocumentRoot, @@ -896,7 +900,7 @@ later

Per-directory Rewrites