Foren

Regarding working with URLs

Vinodh Kumar, geändert vor 7 Jahren.

Regarding working with URLs

New Member Beiträge: 5 Beitrittsdatum: 03.11.16 Neueste Beiträge
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, geändert vor 7 Jahren.

RE: Regarding working with URLs

Liferay Legend Beiträge: 6403 Beitrittsdatum: 23.09.08 Neueste Beiträge
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.