mod_rewrite
Oracle HTTP Server Modules
7-57
Rewrite Rules Hints
Table 7–5
provide hints for using rewrite rules.
For example, if you want to redirect requests from
/demo1
,
/demo2
, and
/demo3
to
/alldemos
, write the rewrite rule as one of the following:
RewriteRule /demo. /alldemos [R]
or
RewriteRule /demo [123] /alldemos [R]
If you intend that
/DemoA
,
/DemoB
, and
/DemoC
to be redirected to
/alldemos
,
add NC (no case) to the preceding rewrite rules, such as:
RewriteRule /demo [123] /alldemos [R, NC]
This rewrite rule will not work to redirect from
/demonstration1
to
/demos
,
because “.” works form one character only. To enable redirection of all URLs
beginning with “demo”, irrespective of subsequent characters, use the rewrite rule
as follows:
RewriteRule ^/demo* /alldemos [R, NC]
In the preceding example, ^ means the beginning, * means any character after
demo.
Table 7–5
Rewrite Rules Hints
Value
Definition
.
Any single character
[char]
Any character listed within a square bracket
b*
Any character b any number of times
.*
Any character any number of times
Содержание HTTP Server
Страница 1: ...Oracle HTTP Server Administrator s Guide 10g Release 1 10 1 Part No B12255 01 December 2003 ...
Страница 12: ...xii ...
Страница 22: ...xxii ...
Страница 30: ...Starting Stopping and Restarting Oracle HTTP Server 1 8 Oracle HTTP Server Administrator s Guide ...
Страница 38: ...About htaccess Files 2 8 Oracle HTTP Server Administrator s Guide ...
Страница 52: ...Getting Information about Processes 4 8 Oracle HTTP Server Administrator s Guide ...
Страница 60: ...Configuring Reverse Proxies and Load Balancers 5 8 Oracle HTTP Server Administrator s Guide ...
Страница 70: ...Specifying Log Files 6 10 Oracle HTTP Server Administrator s Guide ...
Страница 164: ...Security Services Implemented Within Oracle HTTP Server 8 34 Oracle HTTP Server Administrator s Guide ...
Страница 170: ...9 6 Oracle HTTP Server Administrator s Guide ...
Страница 178: ...opmn xml A 8 Oracle HTTP Server Administrator s Guide ...
Страница 211: ...Glossary 9 X 509 Public keys can be formed in various data formats The X 509 v3 format is one such popular format ...
Страница 212: ...Glossary 10 ...
Страница 224: ...Index 12 ...