Rewrites or redirects the path of incoming requests based on a mapping.
Can be used in
Syntax
<rewriter>
<map from="..." to="..." do="..." >*
</rewriter><rewriter> <map from="..." to="..." do="..." >* </rewriter>
Sample
<serviceProxy port="80">
<rewriter>
<map from="^/home" to="/index" />
<map from="^/bank/(.*)" to="/axis2/$1" />
<map from="^/search/(.*)" to="http://www.example.com/search?q=$1" do="redirect" />
</rewriter>
</serviceProxy>
<serviceProxy port="80">
<rewriter>
<map from="^/home" to="/index" />
<map from="^/bank/(.*)" to="/axis2/$1" />
<map from="^/search/(.*)" to="http://www.example.com/search?q=$1" do="redirect" />
</rewriter>
</serviceProxy>
Child Elements
| Element | Description | Cardinality |
|---|---|---|
| map | 0..* |