How to rewrite an URL on a JBoss server


I would like to redirect/rewrite this two kinds of URLs:

  • ->
  • ->
  • -> (no redirect here)

So I just want to redirect the root domain to a new domain, and some pages from my domain to some pages on a new domain…

How can I do that on a JBoss server ?

Best Solution

Have you looked into It looks like what you're looking for, and it's pretty similar to Mod_rewrite for Apache.