Reputation: 755
I need in LR7 to create a specific url, like this :
www.portal.com/news.php
I want this because I need to give a compatibility with older shared data (facebook).
/news.php
will be a portletURL for my custom portlet.
Thanks in advance
Luis
Upvotes: 0
Views: 569
Reputation: 972
You can do URL rewrites configuring urlrewrite.xml file, located in WEB-INF folder:
That file is used by UrlRewriteFilter inside Liferay, add a new rule with your URLs:
<rule>
<from>^/news.php</from>
<to type="permanent-redirect">%{context-path}/your_new_url</to>
</rule>
More info about UrlRewriteFilter syntaxis, see: http://tuckey.org/urlrewrite/
If you are using Tomcat application server or you have an Apache Httpd web server, you can also add url rewrite rules at Tomcat o web server level, more information see:
Upvotes: 3