This forum is no longer active. Please post your questions to our new community site

Forums Liferay

Change url

Subscribe to Change url 6 post(s), 2 voice(s)

 
Avatar bhandley 3 post(s)

I want to change the setup of a Liferay portal used in our company so that it loads with the root url rather than having /liferay appended on.

e.g. http://127.0.0.1 rather than http://127.0.0.1/liferay.

I followed the instructions in this post: https://bitnami.com/forums/forums/4/topics/223

That worked except the graphics don’t display because they have /liferay in the path. Same issue with some of the links.

Is there a way to configure this without editing the properties of each graphic and link?

Thanks in advace for your help.

 
Avatar Beltrán Rueda Administrator 3,714 post(s)

Hi,

I changed the url and I can see the images and the links seems ok. A possible explanation is that you have introduced these images when the URL is /liferay and this data was introduced hardcoded in the database. Do you know if you have introduced these links before to change the URL?

 
Avatar bhandley 3 post(s)

Yes, the images and links were set up before the url change. I can manualy edit each one via the portal but was hoping for a quicker method.

I did look in the database but have not found a table that shows the image path. Do you know what table that is in?

Thanks for your response.

 
Avatar Beltrán Rueda Administrator 3,714 post(s)

Sorry but I don’t know another method to modify the links.

 
Avatar bhandley 3 post(s)

Beltran,
I actually made the changes directly in the database after doing the steps in https://bitnami.com/forums/forums/4/topics/223.

I used two SQL statements against the journalarticle table.

First, to see how many items had ”/liferay/ in the url” I ran:
SELECT content FROM journalarticle where content like ‘/liferay/

Then to make the actually change:
UPDATE journalarticle SET content = REPLACE

So far it looks like this solved my problems.

Thanks for your help.

 
Avatar Beltrán Rueda Administrator 3,714 post(s)

I’m glad to hear this.

Thanks for reporting the solution :) This post will help to other BitNami Liferay users.

Forums Liferay