Rewrites or redirects the path of incoming requests based on a mapping.
Syntax
rewriter:
- <rewriter-map>rewriter: - <rewriter-map>
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>