Re: redirect from root app to app with other context in same host in tomcat

Splash Forums Rewrite Users redirect from root app to app with other context in same host in tomcat Re: redirect from root app to app with other context in same host in tomcat

#22217

You path isn’t correct. Your configuration requires the path to start with a / character. Try something like:

return ConfigurationBuilder.begin()
.defineRule()
.when(Direction.isInbound().and(Path.matches("{path}")
.where("path").matches(".*")))
.perform(Redirect.temporary("/myapp{path}"));

I hope this helps :)

Christian