Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://www.sao.ru/ztcs/manual/de/mod/mod_substitute.html
Дата изменения: Mon Feb 25 15:09:02 2008 Дата индексирования: Sun Apr 10 16:18:51 2016 Кодировка: Поисковые слова: dust |
Apache HTTP Server Version 2.2
Available Languages: en
Description: | Perform search and replace operations on response bodies |
---|---|
Status: | Extension |
Module Identifier: | substitute_module |
Source File: | mod_substitute.c |
mod_substitute
provides a mechanism to perform
both regular expression and fixed string substitutions on
response bodies.
Description: | Pattern to filter the response content |
---|---|
Syntax: | Substitute s/pattern/substitution/[inf] |
Context: | directory, .htaccess |
Override: | FileInfo |
Status: | Extension |
Module: | mod_substitute |
The Substitute
directive specifies a
search and replace pattern to apply to the response body.
The meaning of the pattern can be modified by using any combination of these flags:
i
n
n
flag forces the pattern to be treated
as a fixed string.f
f
flag causes mod_substitute to flatten the
result of a substitution allowing for later substitutions to
take place on the boundary of this one.
<Location />
AddOutputFilterByType SUBSTITUTE text/html
Substitute s/foo/bar/ni
</Location>
If either the pattern or the substitution contain a slash character then an alternative delimiter should be used:
<Location />
AddOutputFilterByType SUBSTITUTE text/html
Substitute "s|<BR */?>|<br />|i"
</Location>
Available Languages: en