Fórum

Regarding working with URLs

Vinodh Kumar, modificado 7 Anos atrás.

Regarding working with URLs

New Member Postagens: 5 Data de Entrada: 03/11/16 Postagens Recentes
Hi All,

I want to get rid of the url structures like /web/guest, /c/.. etc. I want my pages to appear under

mydomain.com/about/page1,
mydomain.com/about/page2

Can someone provide me the solution for this. It would be great!

Thanks,
Vinodh.
thumbnail
Olaf Kock, modificado 7 Anos atrás.

RE: Regarding working with URLs

Liferay Legend Postagens: 6403 Data de Entrada: 23/09/08 Postagens Recentes
Vinodh Kumar:
I want to get rid of the url structures like /web/guest, /c/.. etc.


You probably can't do much (at least not easily) against the /c URLs. As they're all POST action targets anyway, this shouldn't be too much of a problem. However, the URL part /web denotes public pages, followed by the site name (guest in your case). Unless you specify a virtual host name for the site. In that case, Liferay will omit /web/guest from the URL.

Note that /group denotes private pages, followed by the site name, and you can also get rid of this through specifying a (different) virtual host.

If you're annoyed by your own portlet's long and complex URLs, the keywords to search for are "friendly URL Liferay" - while they technically need to be unique (thus by default rather complex), you can gain back control over them. And it's well documented.