0
votes

We have a large legacy application that currently has the default context root of "/" running on resin pro. We are moving to clustered JBoss w/ Apache/mod_cluster and found that we need to have a context root that is not ROOT ("/"). Is there an easy way to refactor the application without changing thousands of links, images, css, js, and jsp references? mod_rewrite is available, but we are having trouble getting it to work.

Example:
Old login page was /webfront/login.jsp
New login page with context root will be /web/webfront/login.jsp

1

1 Answers

0
votes

Something like this could work

RewriteRule ^/webfront/(.*) /web/webfront/$2 [R]