How to remove “/web/guest” in Liferay 6.1

Do the following steps to remove “/web/guest” from the URL (Liferay 6.1):

  1. Login in as portal administrator.
  2. Go to Control Panel > Site Setting.
  3. Click on “Site URL“.
  4. Key in your desired domain in the “Public Pages” field (you can leave the Private Pages blank).
  5. Save your changes.
  6. You should be able to access the portal via your new domain (liferay.vt.com:8080) and “/web/guest” has been remove from the URL.
    Note: Do not forget to include your domain in your host file and restart or clear your browser.

Warning: There seems to be an issue with the Site’s virtual hosts in Liferay Portal Community Edition 6.1.0 CE (Paton / Build 6100 / January 6, 2012). When our users tried to click on the portal’s links for the first time, they will be redirected back to the same page that they were in earlier.

Nick Lindberg (from Liferay forum) has summarized the problem for us:

When somebody loads our page for the first time, all the links are appended with:
;jsessionid=8D183E4EECA2028C1CF9C4D09E96DE2A
and what seems to happen is that when you click on it, it just redirects you back to the same page [our homepage] only those “jsessionid” strings are now gone and everything works as normal.

According to the forum, this issue will be resolved in the next release. We will verify this portion once the release is out.

2th Aug 2012 – Latest Update!
Liferay Portal 6.1 CE GA2 Release is out and LPS-25587 is one of the issues that is been fixed

2 thoughts on “How to remove “/web/guest” in Liferay 6.1”

  1. Hi All

    First of all, let me tell you what I am or my company is intended to do. We have already developed a project using Java, JSP and Servlet. We want it to integrate with Liferay so that we can change logo, css, images, themes or any other UI related component at run time using Liferay admin panel. But backend should be what we have developed. In short, UI of our project is controlled by Liferay but control of data displayed on UI or submitted from UI should be from our developed backend code.

    Now I have a few questions regarding above said approach of fulfilling the requirement:-
    1) What we are trying to do is possible?
    2) Is this approach recommendable for what we intended to do?
    3) Or do we need to develop our project from scratch to fit into Liferay? Like developing portlets and deploying in Liferay or other approach that has been given in Liferay documentation.
    4) What about database integration? We have around 15 columns/fields in user table in database of our project which is completely different from that of Liferay’s user table.

    Liferay is a very new for us. We have checked the documentation section of Liferay but still few things like above said requirements and its implementation is not clear. Also, we would like to know in what scenarios/requirements Liferay is useful.

    Eagerly waiting for your views. Any help will be very much appreciated.

    Thanks

    1. Hi Nitesh,

      Actually I am pretty new to Liferay as well. I have never tried to integrate Liferay with JSP and Servlet before, but my best bet is that if you are looking to retain portal UI functionalities like logo, css, themes and its drag and drop features between portlets, then you might need to develop it as portlet.

      Question #2 and #3: Is this approach recommendable for what we intended to do? Or do we need to develop our project from scratch to fit into Liferay? Like developing portlets and deploying in Liferay or other approach that has been given in Liferay documentation.
      Er no, this is not the proper approach in a portal environment. Yes, I am afraid that you might need to develop your project from stretch (best scenario) or alternative you can retain your servlet in your portlet and call it via ajax?

      Question #4: What about database integration? We have around 15 columns/fields in user table in database of our project which is completely different from that of Liferay’s user table.
      I believe you are able to add additional custom fields for Liferay’s User. You can link your existing database with Liferay users by obtaining their unique user id (Method: PortalUtil.getUser(request); user.getUserId();)

      Hope it’s helps 🙂

Leave a Reply to mygeekjourney Cancel reply

Your email address will not be published. Required fields are marked *