Dev @ Work

A day in the life of a developer

SEO Friendly URLs for Liferay Portlets

April 4th, 2010 by Bert Willems

In my previous article I showed you how you can optimize SEO from within a portlet. Today we will take it one step further: I will show you how you can optimize portlet URLs. By default the URLs generate by Liferay are quite messy; it contains the portlet ID, the state and several other options. This doesn’t really look nice for Google.

However, Liferay has a nice method of controlling the URL the portal generates for a portlet, the ‘FriendlyURLMapper‘. You can implement this interface, registerd it in the liferay-portlet.xml and you will have nice URLs. In the following example I will show how to implement it and what each individual method does.

Read the rest of this entry »

Posted in Java | 4 Comments »

SEO optimize a Liferay portlet – Title, Description, Keywords

March 31st, 2010 by Bert Willems

In this post I will show you how you can SEO optimize your Liferay portlets. When you are building a portal which is (partially) available to the general public you want the search engines to rank your portal as high as possible in order to draw as much traffic to your portal as possible. Because of the nature of a portal (a ‘empty’ canvas filled with several unrelated portlets) it’s pages aren’t ideal for search engines because it hasn’t got a SEO description and keywords (or even a SEO friendly title).

In this post I will show you how you can in use build in features of Liferay to optimize SEO, First we will discus what you can do on a portal level and then I will show you how you can optimize SEO directly from a portlet itself.
Read the rest of this entry »

Posted in Java | 2 Comments »