Rewrite Rules Hints
Table 7–5
Table 7–5 Rewrite Rules Hints
Value
.
[char]
b*
.*
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.
provide hints for using rewrite rules.
Definition
Any single character
Any character listed within a square bracket
Any character b any number of times
Any character any number of times
Oracle HTTP Server Modules 7-57
mod_rewrite
Need help?
Do you have a question about the HTTP Server B12255-01 and is the answer not in the manual?
Questions and answers