Friendly URL implementation for Liferay non-portlet pages without hyphen(-)Friendly URL implementation for Liferay non-portlet pages without hyphen(-)https://liferay.dev/en/c/message_boards/find_thread?p_l_id=119785333&threadId=1128126262024-03-28T18:39:54Z2024-03-28T18:39:54ZFriendly URL implementation for Liferay non-portlet pages without hyphen(-)Sundar Ramhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1128126252019-03-18T15:04:13Z2019-03-18T15:04:13ZI have a basic Liferay Page created through the page creation form. URL of the page is, http://localhost:8080/categories<br /><br />Now I want to add two parameters in the url like,<br /><br />http://localhost:8080/categories/<:category>/<:product><br /><br />Where category and product are the parameters, so the actual url will look like,<br /><br />http://localhost:8080/categories/diamonds/rings (diamond and rings are the values for those parameters)<br /><br /><br />I checked this link which explains about how to implement Friendly URL, I found two problems in implementing that approach, the problems are,<br /><br />1. That guide explains how to implement Friendly URL only for Portlet page, but I dont have any portlet page. I just have a basic page which is created through the CMS(through page creation form), so I don't know where to place the routes.xml file?<br /><br />2. Another block is, the Friendly URL introduces (-) inbetween the url like: http://localhost:8080/categories/-/:category/:product, which I need to avoid.<br /><br />So My questions are,<br /><br />1. How to create a Friendly URL for the basic Liferay page? and where to palace routes.xml file when I don't have a protlet page.<br /><br />2. How to have the URL with parameter without a hypen(-).<br /><br /><br />If both of the above is not possible, as a workaround can we direct the user to categories page when this url is hit: http://localhost:8080/categories/diamond/rings?.<br /><br />i.e when the user hits,<br /><br />This url: http://localhost:8080/categories/diamond/rings,<br /><br />The user shoud get directed to the page: http://localhost:8080/categories but the url should be same as http://localhost:8080/categories/diamond/rings. Even if diamond and rings are not considered as a parameter that is ok for me.<br /><br />Please let me know if any more detail is needed.<br /><br /><br />If anyone can help me on this it will be really helpful.<br /><br /><br