httpd-docs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 52000] RewriteRule documentation unclear/misleading about substitution
Date Mon, 10 Oct 2011 16:27:43 GMT

--- Comment #2 from Filipus Klutiero <> 2011-10-10 16:27:43 UTC ---
Thanks Rich. I re-read the section and there is at least one more possibility
which is not considered. The rule may be applied to a "URL-path", as explained

The Substitution of a rewrite rule is the string that replaces the original
URL-path that was matched by Pattern. The Substitution may be a:

file-system path
    Designates the location on the file-system of the resource to be delivered
to the client.
    A DocumentRoot-relative path to the resource to be served. Note that
mod_rewrite tries to guess whether you have specified a file-system path or a
URL-path by checking to see if the first segment of the path exists at the root
of the file-system. For example, if you specify a Substitution string of
/www/file.html, then this will be treated as a URL-path unless a directory
named www exists at the root or your file-system, in which case it will be
treated as a file-system path. If you wish other URL-mapping directives (such
as Alias) to be applied to the resulting URL-path, use the [PT] flag as
described below.
Absolute URL
    If an absolute URL is specified, mod_rewrite checks to see whether the
hostname matches the current host. If it does, the scheme and hostname are
stripped out and the resulting path is treated as a URL-path. Otherwise, an
external redirect is performed for the given URL. To force an external redirect
back to the current host, see the [R] flag below.

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message