From 15f3757bf47346301ab2e9c0b7ab578a6eaf1b27 Mon Sep 17 00:00:00 2001
From: Noirin Plunkett $N
in the substitution string!
These three types of variables are expanded in the order above.
As already mentioned, all rewrite rules are
- applied to the Substitution (in the in which they are defined
+ applied to the Substitution (in the order in which
+ they are defined
in the config file). The URL is completely
replaced by the Substitution and the
rewriting process continues until all rules have been applied,
or it is explicitly terminated by a
- L
flag - see below.
L
flag.
There is a special substitution string named
' Note: When you use this flag, make
+ Note: When you use this flag, make
sure that the substitution field is a valid URL! Otherwise,
you will be redirecting to an invalid location. Remember
that this flag on its own will only prepend
-
' which means: NO
@@ -1365,7 +1366,7 @@ cannot use $N
in the substitution string!
qsappend|QSA
'
(query string
append)
- This flag forces the rewrit engine to append a query
+ This flag forces the rewrite engine to append a query
string part of the substitution string to the existing string,
instead of replacing it. Use this when you want to add more
data to the query string via a rewrite rule.$N
in the substitution string!
translate ``/~
'' into
``/u/
'', or to always append a slash to
/u/
user, etc.
-
- http://thishost[:thisport]/
to the URL, and rewriting
will continue. Usually, you will want to stop rewriting at this point,
and redirect immediately. To stop rewriting, you should add
- the 'L' flag.skip|S
=num'
@@ -1466,7 +1466,7 @@ directory, which is not always possible.
redirect to your own server will not work with the prefix
http://thishost
because of this feature. To
achieve such a self-redirect, you have to use the
- R-flag (see below).
[QSA]
flag (see above).
+ [QSA]
flag.
Here are all possible substitution combinations and their -- 2.50.0