0 Replies Latest reply on Oct 28, 2008 1:48 PM by Steve Karlovitz

    Rewrite URL

    Steve Karlovitz Newbie

      I am trying to get the rewrite portion of JBOSS working and wanted to make sure I was on the right track. I have 3 applications that are currently running on one box. I have the urls app1.mycompany.com, app2.mycompany.com, and app3.mycompany.com all pointing to the same IP address. I am trying to use the rewrite.properties to say something like this.

      RewriteEngine On
      RewriteCond %{HTTP_HOST} ^http://app1\..*\.mycompany\.com
      RewriteRule ^/(.*) http://$0:%{SERVER_PORT}/App1/search.html [L,R]

      I want to put this condition in for all applications. Can someone tell me if this is the correct way to do this. Also it would be helpful to see some examples.

      Thanks
      Steve