0 Replies Latest reply on Sep 17, 2010 3:16 PM by dsailer.d.sailer.comcast.net

    default redirects not working

    dsailer.d.sailer.comcast.net

      I have a seam 2.2.0.GA project which contains both an admin and a consumer web site bundled. When a user goes to http://myhost it should default to the consumer apps home page. This is running on jboss 5.1.0.GA in an EAR, so in application.xml, I have:


         <module>
            <web>
               <web-uri>MyApp.war</web-uri>
               <context-root>/</context-root>
            </web>
         </module>
      


      Then in that wars root, I have this in index.html



      <meta http-equiv="Refresh" content="0; URL=/home">




      and in Home.page.xml, I have


      <rewrite pattern="/home" />




      Now if I go to http://myhost:8080 in a browser, it incorrectly redirects to:
      http://myhost:8080/consumer/Home.seam


      but if I go to http://myhost:8080/index.html in a browser, it redirects to:
      http://myhost:8080/home


      which is the behavior I want since I want to hide all the consumer and seam paths.