4 Replies Latest reply on Mar 10, 2008 10:17 PM by vwiencek

    seam + urlRewrite

    vwiencek

      Hi,


      i'm using URLRewrite for my jboss seam site, and it works just fine (like the wiki example).


      I was wondering whether we could do the following with URLRewrite :


      redirect
      from  http://action.mysite.com
      to    http://mysite.com/action


      Any idea ?


      Thank you.

        • 1. Re: seam + urlRewrite
          christian.bauer

          Why not?

          • 2. Re: seam + urlRewrite
            vwiencek

            Because the URLRewrite documentation does not highlight this capability ....


            So I guess I'm going to investigate this subject, and then post the reply to my own question...


            This post looks like Socratic Dialectic ... :) I like it !

            • 3. Re: seam + urlRewrite
              jimk1723

              Would something like this work? (lifted from the examples...)


              <rule>
                  <name>Domain Name Check</name>
                  <condition name="host" operator="equal">myaction.example.com</condition>
                  <from>(.*)</from>
                  <to type="redirect">http://example.com/myaction$1</to>
              </rule>
              



              Or are you looking for a generic rule that will cover all subdomains?

              • 4. Re: seam + urlRewrite
                vwiencek

                You think right !!


                First aof all, thank you for your reply.
                As fas as I understand, URLRewrite (tuckey) is a java adapted version of mod rewrite, and then does not contain every features of the original version.


                But yes, I would be able to redirect every


                myValue.domain.com to domain.com/myValue


                That would allow me to use dns redirections like


                mysite1.com to mysite1.domain.com


                mysite2.com to mysite2.domain.com


                Thank you