You set this on the webserver side. If you use Apache httpd server, AFAIK you set this on .htaccess
But I'm not using Apache or any other webserver, I'm simply using JBOSS which obviously has Tomcat as part of it.... is there somewhere in Tomcat that I can set this up?
Tomcat is not a webserver. I think you still need to use a webserver to achieve this.
Found the answer, so just thought I would post it.
JBOSS can perform URL rewriting via Tomcat and Valves.
You need to modify the server.xml (or the context.xml within your webapp) and add the following valve.
You then need to copy the jbossweb-rewrite.jar to you $SERVER/lib directory
Then create a folder to store your rewrite.properties file. If you used server.xml and placed the valve within the context of the Engine then you need to create a folder called $SERVER/conf/<engine-name>
So for me that was default/conf/jboss.web
Create a file in there called rewrite.properties, enter your rewrite rules and cycle the server.
Where is the jbossweb-rewrite.jar located? I have searched my entire JBoss directory structure and I can't find it.