<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Friendly URL multiple routes</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=113335139" />
  <subtitle>Friendly URL multiple routes</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=113335139</id>
  <updated>2026-04-03T21:40:26Z</updated>
  <dc:date>2026-04-03T21:40:26Z</dc:date>
  <entry>
    <title>RE: Friendly URL multiple routes</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=113932842" />
    <author>
      <name>Amos Fong</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=113932842</id>
    <updated>2019-06-07T20:44:56Z</updated>
    <published>2019-06-07T20:44:56Z</published>
    <summary type="html">Yea, I think I wasn&amp;#39;t clear in my response. You should be able to create multiple XXXFriendlyURLMapper classes in one module. For an example, look at the document-library-web module.</summary>
    <dc:creator>Amos Fong</dc:creator>
    <dc:date>2019-06-07T20:44:56Z</dc:date>
  </entry>
  <entry>
    <title>RE: Friendly URL multiple routes</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=113893266" />
    <author>
      <name>Eric COQUELIN</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=113893266</id>
    <updated>2019-06-04T20:51:49Z</updated>
    <published>2019-06-04T20:51:49Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;How ?&lt;br&gt;&lt;br&gt;In Liferay, you define one function whatever the route is&lt;br&gt;&lt;br&gt;&lt;pre&gt;&lt;code&gt;@Override
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; public String getMapping() {
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; return _MAPPING;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; }&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;&lt;br&gt;Unless I can define as many XXXFriendlyURLMapper as I want. Need to test.&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Eric COQUELIN</dc:creator>
    <dc:date>2019-06-04T20:51:49Z</dc:date>
  </entry>
  <entry>
    <title>RE: Friendly URL multiple routes</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=113424157" />
    <author>
      <name>Amos Fong</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=113424157</id>
    <updated>2019-04-26T18:20:16Z</updated>
    <published>2019-04-26T18:20:16Z</published>
    <summary type="html">Yea, should be possible. Just create multiple *route.xml files and then in your FriendlyURLMapper, you can specify different prefixes for each route.xml</summary>
    <dc:creator>Amos Fong</dc:creator>
    <dc:date>2019-04-26T18:20:16Z</dc:date>
  </entry>
  <entry>
    <title>Friendly URL multiple routes</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=113335138" />
    <author>
      <name>Adrian Pol</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=113335138</id>
    <updated>2019-04-22T12:18:27Z</updated>
    <published>2019-04-22T12:18:27Z</published>
    <summary type="html">Hello!&lt;br /&gt;&lt;br /&gt;i&amp;#39;m using Liferay 7.0 and we want to create a module with friendly url, we need create routes like this:&lt;ul style="list-style: disc outside;"&gt;&lt;li&gt;/sample/{sampleId}&lt;/li&gt;&lt;li&gt;/example/{exampleId}&lt;/li&gt;&lt;li&gt;/noob/{noobId}&lt;/li&gt;&lt;/ul&gt;With the example of Liferay (&lt;a href="https://dev.liferay.com/es/develop/tutorials/-/knowledge_base/7-0/making-urls-friendlier"&gt;https://dev.liferay.com/es/develop/tutorials/-/knowledge_base/7-0/making-urls-friendlier&lt;/a&gt;) all the routes is mapping by one xml and one DefaultFriendlyURLMapper, in such a way that everything would be like this:&lt;ul style="list-style: disc outside;"&gt;&lt;li&gt;/blogs/sample/{sampleId}&lt;/li&gt;&lt;li&gt;/blogs/example/{exampleId}&lt;/li&gt;&lt;li&gt;/blogs/noob/{noobId}&lt;/li&gt;&lt;/ul&gt;I¿s posible create multiples routes.xml and multiples DefaultFriendlyURLMapper clases for make it like the first example?&lt;br /&gt;&lt;br /&gt;thank you so much community!</summary>
    <dc:creator>Adrian Pol</dc:creator>
    <dc:date>2019-04-22T12:18:27Z</dc:date>
  </entry>
</feed>
