How to implement Friendly URL in Liferay portal

流过昼夜 提交于 2019-12-06 08:25:54

问题


I have to simplify the URL. I am using liferay portal.

URL at present look like this:

http://10.11.201.144:8080/web/guest/marketing?p_p_id=EXT_6&p_p_lifecycle=0&p_p_state=normal&p_p_mode=view&p_p_col_id=column-1&p_p_col_count=1&_EXT_6_pageName=aboutus

I need to simplify it like: http://10.11.201.144:8080/web/guest/marketing/aboutus or some what easy.

Life ray provides Friendly URL option i don't know how to use it.. Please help.


回答1:


The following documentation explains how to do this in a tutorial: https://dev.liferay.com/develop/learning-paths/mvc/-/knowledge_base/6-2/making-urls-friendly




回答2:


I have not tried it, but this parameter from the Liferay documentation (page 189, section "DEFAULT USER PRIVATE LAYOUTS") sounds nice:

default.user.private.layout.friendly.url=/home

There is also one for Guest users.




回答3:


I documented the steps for this 2 years ago on my blog just in case I need it again. Here you go: http://elshawwa.blogspot.com/2009/05/liferay-virtual-hosting-friendly-url.html



来源:https://stackoverflow.com/questions/2332993/how-to-implement-friendly-url-in-liferay-portal

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!