RewriteRule flags

B
Escape non-alphanumerical characters before substitution
BNP
Escape space as %20 and not +
C
Chain the rules. It this rule fails, the chained one will be skipped
CO
Set a cookie
DPI
Discard path info of the URL
END
Stop all rewriting imeediately
F
Return 403 Forbidden
G
Return 410 Gone
H
Send to specific content handler
L
Stop rewriting on this rule
N
Re-run rewriting from the first rule
NC
Case-insensitive
NE
Do not hex-escape special characters
NS
Skip rule if it's a subrequest
P
PT
QSA
Add query string
QSD
Discard query string
QSL
Treat the last ? as QS delimiter
R
Redirect with code
S
Skip next N rules
T
Set the MIME-type
Multiple flags should be comma-separated
Comments