
Relative directory name
URL path after ˜username will be mapped to that subdirectory of
the user’s home directory.
Absolute pathname or URL containing an asterisk ( *)
The asterisk will be replaced with the username, and the part of
the URL after ˜username will be appended to the path.
The URL Rewriting Engine
The mod_r ewrite module is a sophisticated pattern-based URL
rewriting engine that lets you set up complex rewriting rules
specifying qualifying conditions, using the
RewriteRule and
RewriteCond directives. These directives allow submatches,
CGI variables, and other information to be interpolated into
replacement strings and condition strings, as shown in the fol-
lowing table.
Constr uct Expansion
$n Back-reference to the the nth parenthesized
group of the RewriteRule pattern.
%n Back-reference to the the nth parenthesized
group part of the last matching RewriteCond
pattern.
%{var} The value of the named CGI variable.
%{ENV:var} The value of the named environment variable.
%{HTTP:header} The value of the named HTTP header.
%{LA-F:var} Look-ahead: Issues an internal subrequest
based on the filename to determine the final
value of the named variable.
%{LA-U:var} Look-ahead: Issues an internal subrequest
based on the URL to determine the final value
of the named variable.
${map:key [ |def] } The value returned by the named map function
(valid only in RewriteRule). ...