How to remove unnecessary parts from the URL / shorten URL / make URL friendlier


  • We would like to remove the web/guest part of the URL, to shorten it


  • Liferay Portal 6.2
  • Liferay DXP 7.0
  • Liferay DXP 7.1
  • Liferay DXP 7.2


  • Generally the default public Site base URL is https://localhost:8080/web, and the private one is https://localhost:8080/group
  • Modify /etc/hosts to include
  • Admin Menu > Configuration > Site Settings section > drop-down the Site URL portion of the configuration page, and specify virtual hosts for the public and private pages.
    e.g. add to public pages
  • Now the Home page opens as 
Was this article helpful?
0 out of 3 found this helpful