2 Replies Latest reply on Aug 9, 2012 4:24 AM by john.k

    Rewrite URL, hide 'portal'?

    john.k

      Hi everyone,

       

      how can I rewrite URL's in GateIn 3.1.0? (like mod_rewrite) I suppose it should work, somehow, through a file name rewrite.properties.

      I will figure the rewrite syntax out, but I would appreciate someone pointing me in the right direction on how to configure it to work (server.xml?).

       

      Also, one of the goals would be to hide the 'portal' in the url (SEO), how would I do that? Through a new context?

       

      Thanks in advance

        • 1. Re: Rewrite URL, hide 'portal'?
          hoang_to

          I think you should study the form of portal URL first (URL in 3.1.0 follows a quite simple pattern) to configure rewrite syntax (relevant tutorial exists on Apache)

          • 2. Re: Rewrite URL, hide 'portal'?
            john.k

            Thank you for your answer!

            My question was, and is, how to achieve any kind of rewrite, also tomcat is runnning standalone, so mod_rewrite isn't available.

            Ofcourse I will figure out the specific rewrite rules out myself, if I can figure out how to get rewrite.properties to work.

            I tried to configure a valve in server.xml. But I don't seem to know the right class name, which seems to differ from JBOSS (org.jboss.web.rewrite.RewriteValve).

             

            If I have missed somewhere the description of this feature in the documentation, could you point me in the right direction?