ODE-1028: Updated urlrewrite rule
Project: http://git-wip-us.apache.org/repos/asf/ode/repo Commit: http://git-wip-us.apache.org/repos/asf/ode/commit/529c56e1 Tree: http://git-wip-us.apache.org/repos/asf/ode/tree/529c56e1 Diff: http://git-wip-us.apache.org/repos/asf/ode/diff/529c56e1 Branch: refs/heads/master Commit: 529c56e138f12ad3d9b35841ba9526d91de1a017 Parents: d8ebc04 Author: sathwik <[email protected]> Authored: Wed Jun 28 19:13:02 2017 +0530 Committer: sathwik <[email protected]> Committed: Wed Jun 28 19:13:02 2017 +0530 ---------------------------------------------------------------------- axis2-war/src/main/webapp/WEB-INF/urlrewrite.xml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ode/blob/529c56e1/axis2-war/src/main/webapp/WEB-INF/urlrewrite.xml ---------------------------------------------------------------------- diff --git a/axis2-war/src/main/webapp/WEB-INF/urlrewrite.xml b/axis2-war/src/main/webapp/WEB-INF/urlrewrite.xml index f950be9..1562d93 100644 --- a/axis2-war/src/main/webapp/WEB-INF/urlrewrite.xml +++ b/axis2-war/src/main/webapp/WEB-INF/urlrewrite.xml @@ -27,15 +27,18 @@ http://www.tuckey.org/urlrewrite/ --> -<urlrewrite> +<urlrewrite default-match-type="wildcard"> <rule> <note> - The rule means that requests to /ode will be redirected to + The rule means that requests to /ode will be redirected to /ode/webjars/ode-console/${version} the url will be rewritten. </note> - <from>^/$</from> - <to type="redirect">webjars/ode-console/0.1.0-SNAPSHOT</to> + <condition type="request-uri" operator="notequal">/*/webjars/**</condition> + <condition type="request-uri" operator="notequal">/*/processes/**</condition> + <condition type="request-uri" operator="notequal">/*/services/**</condition> + <condition type="request-uri" operator="notequal">/*/deployment/**</condition> + <from>/**</from> + <to>/webjars/ode-console/0.1.0-SNAPSHOT/$1</to> </rule> </urlrewrite> -
