RewriteCond
RewriteCond TestString CondPattern Server config, virtual host, directory
One or more
RewriteCond
directives can precede a
RewriteRule
directive to define conditions under
which it is to be applied. CondPattern
is
a regular expression matched against the value retrieved for
TestString
, which contains server
variables of the form
%{
NAME_OF_VARIABLE
}
,
where NAME_OF_VARIABLE
can be one of the
following list:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
|
|
These variables all correspond to the similarly named HTTP MIME
headers, C variables of the Apache server, or the current time. If
the regular expression does not match, the
RewriteRule
following it does not apply.