4 Replies Latest reply on Jun 17, 2008 10:11 AM by stephanemangeot

    Hiding /portal/ in all urls.

    stephanemangeot

      Hi,

      I want to hide /portal/ in all urls.
      I've tried to use mod_proxy and mod_rewrite and the two methods works except when a link in a page contains /portal/.

      Examples :
      when I use the url http://test.foo.com/, it's correctly (internally) rewritten into http://test.foo.com/portal/ and the user see the first url.
      That's ok.

      When I click on a link in a portlet, the url is something like http://test.foo.com/portal/portletName. The user see /portal/ in the url.
      That's not ok, I want that the user sees http://test.foo.com/portletName.

      Is it possible to hide /portal/ in all urls ?

      Thanks.

        • 1. Re: Hiding /portal/ in all urls.
          stephanemangeot

          Like a lot coders, solution appears after writing in a forum.
          So, I think I just have to change the context path like written in the jboss portal documentation.
          I try that now a keep you wired.

          • 2. Re: Hiding /portal/ in all urls.
            stephanemangeot

            Ok, that works.
            Sorry to have disturbed you.

            • 3. Re: Hiding /portal/ in all urls.
              stephanemangeot

              Finally, my question is still up to date but I have to reformulate it :

              We are working with a lot of partners which have the same business.
              At the end of the project, each partner will have to access his website via an url like www.partner1.com, www.partner2.com ...
              Each partner's website is a portal managed by one jboss-portal 2.6.

              After reading the documentation, I think that the url to access a portal (and one partner) will be www.partner1.com/partner1, www.partner2.com/partner2 (every hosts sharing the same IP) ... I know that I can rewrite (using apache's mod_rewrite or mod_proxy) www.partner1.com/partner1 into www.partner1.com but I'm sure that jboss portal will generate links containing /partner1 and so, the user will see www.partner1.com/partner1 after clicking a link.

              Is it possible to hide /partner1, /partner2 ... in all urls ?

              • 4. Re: Hiding /portal/ in all urls.
                stephanemangeot

                The resume of the problem is :
                I want that JBoss identify a portal by its url and not by its name.