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

Issue

  • We would like to remove the web/guest part of the URL, to shorten it
    e.g. http://www.abc.com/web/guest/home-> http://www.abc.com/home 

Environment

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

Resolution

  • 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 www.abc.com
  • 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 www.abc.com to public pages
  • Now the Home page opens as http://www.abc.com/home 
Was this article helpful?
0 out of 3 found this helpful