Milople Inc
Milople Inc

Reputation: 399

Liferay Page redirection

I have developed a theme in liferay 6.1. I have a page named "localhost:8080/home" but now i want that on clicking this link of the page, it should be redirected to localhost:8080

Any suggestions are welcomed. Thanks in Advance.

Upvotes: 0

Views: 1360

Answers (1)

yannicuLar
yannicuLar

Reputation: 3133

I think you are confused a little bit, so just some things you should know:

  1. You can't (normally and without hacks) have a page named "localhost:8080". Every Page (or 'Layout' in Liferay) has a short name, that takes it's part of the url. This is often called "friendly url" but it's often confused with the "friendly url feature", which is a way to shorten your url request data. So you're always going to have urls like 'localhost:8080/something'. The same holds for the 'home' page
  2. You can partially shorten the Url by using 'virtual host'. It removes the part of the url before your page's name (like removing the web/guest or user/username ) suffix
  3. You can use the 'friendly url' feature to shorten the part of the url that goes after the page's name, and contains request information like lifecycle state info or custom request parameters

Upvotes: 1

Related Questions