Friendly URLs

From LiferayPedia

Jump to: navigation, search


A "friendly URL" is one that calls the portal system using an end user friendly URL, vs. one that has a lot of parameters and is more machine derived. Friendly URLs are served by com.liferay.portal.servlet.FriendlyURLServlet, which is configured in WEB-INF/web.xml for both "public" and "private" URLs.

The default "public" friendly URL is a request that starts with /web/* (vs. the normal /c/* which calls the MainServlet). A "private" URL starts with /group/*. These can be configured by changing the servlet mapping in web.xml, as well as layout.friendly.url.private.servlet.mapping and layout.friendly.url.public.servlet.mapping properties in the portal.properties file (overwrite them in portal-ext.properties).

Personal tools