Foros de discusión

Friendly URL

anand gopalan, modificado hace 11 años.

Friendly URL

Expert Mensajes: 442 Fecha de incorporación: 2/03/12 Mensajes recientes
HI,

I am creating Intranet site and current URL is http://pfin-fs1/web/guest/ and I want to use this Friendly URL

http://hradmin.in.abc-xyz.com

How to achieve this? Please help me
anand gopalan, modificado hace 11 años.

RE: Friendly URL

Expert Mensajes: 442 Fecha de incorporación: 2/03/12 Mensajes recientes
Hi,

Anybody know, how to achieve this? Please help me.

Regards
Anand
anand gopalan, modificado hace 3 años.

RE: Friendly URL

Expert Mensajes: 442 Fecha de incorporación: 2/03/12 Mensajes recientes
Hi Ezeguiel,

see the attachment. I am getting the error. How to solve this?

Archivos adjuntos:

anand gopalan, modificado hace 3 años.

RE: Friendly URL

Expert Mensajes: 442 Fecha de incorporación: 2/03/12 Mensajes recientes
Hi,

After I follow your guideline, but it fail. please see the screenshot. Please let me know how to fix this issue.
anand gopalan, modificado hace 11 años.

RE: Friendly URL

Expert Mensajes: 442 Fecha de incorporación: 2/03/12 Mensajes recientes
Hi,

now it is working with http://hradmin.in.pepperl-fuchs.com/web/guest/ but i want

when I type http://hradmin.in.pepperl-fuchs.com/ this url it should redirect to http://hradmin.in.pepperl-fuchs.com/web/guest/
thumbnail
Manish Yadav, modificado hace 11 años.

RE: Friendly URL

Expert Mensajes: 493 Fecha de incorporación: 26/05/12 Mensajes recientes
Hi anand ,

you can define default.landing.page.path property in portal-ext.properties.

default.landing.page.path=/web/guest
and

company.default.home.url=/web/guest

reference you can get it from

Portal-ext.properties
anand gopalan, modificado hace 11 años.

RE: Friendly URL

Expert Mensajes: 442 Fecha de incorporación: 2/03/12 Mensajes recientes
Hi,

you mean i need to add this line in portal-ext.properties file

default.landing.page.path=http://hradmin.in.pepperl-fuchs.com/web/guest

company.default.home.url=http://hradmin.in.pepperl-fuchs.com
thumbnail
Manish Yadav, modificado hace 11 años.

RE: Friendly URL

Expert Mensajes: 493 Fecha de incorporación: 26/05/12 Mensajes recientes
you have to add only below properties

company.default.home.url=/web/guest
default.landing.page.path=/web/guest
anand gopalan, modificado hace 11 años.

RE: Friendly URL

Expert Mensajes: 442 Fecha de incorporación: 2/03/12 Mensajes recientes
Hi Manish,

thank you for quick reply.

I shouldn't directly overwrite the portal-ext.properties files in portal-impl.jar file under webapps\ROOT\WEB-INF\lib

then I how i can edit this file. please send your comments.
thumbnail
Manish Yadav, modificado hace 11 años.

RE: Friendly URL

Expert Mensajes: 493 Fecha de incorporación: 26/05/12 Mensajes recientes
anand gopalan:
Hi Manish,

thank you for quick reply.

I shouldn't directly overwrite the portal-ext.properties files in portal-impl.jar file under webapps\ROOT\WEB-INF\lib

then I how i can edit this file. please send your comments.



Check below path for portal-ext.properties. if file is not exist there you can create file with name of portal-ext.properties and restart server.

\webapps\ROOT\WEB-INF\classes\portal-ext.properties
Siby Mathew, modificado hace 11 años.

RE: Friendly URL

Expert Mensajes: 268 Fecha de incorporación: 4/03/11 Mensajes recientes
Hi Manish/Anand,
You can put your portal-ext.properties in the same level as the deploy folder. Liferay will automatically use it.

Thanks,
Siby
anand gopalan, modificado hace 11 años.

RE: Friendly URL

Expert Mensajes: 442 Fecha de incorporación: 2/03/12 Mensajes recientes
Hi Manish/Siby,

After I have added below line in the portal-ext.properties.

company.default.home.url=/web/guest
default.landing.page.path=/web/guest

when i type this URL : http://hradmin.in.pepperl-fuchs.com I am getting this error. please let me know how to fix this issue.


logs show the error message:
04:06:14,740 ERROR [VirtualHostFilter:301] java.lang.IllegalArgumentException: Path hradmin.in.pepperl-fuchs.com does not start with a "/" character
java.lang.IllegalArgumentException: Path hradmin.in.pepperl-fuchs.com does not start with a "/" character
at org.apache.catalina.core.ApplicationContext.getRequestDispatcher(ApplicationContext.java:432)
at org.apache.catalina.core.ApplicationContextFacade.getRequestDispatcher(ApplicationContextFacade.java:223)
at com.liferay.portal.servlet.filters.virtualhost.VirtualHostFilter.processFilter(VirtualHostFilter.java:296)

.....................
.....................
04:06:14,755 ERROR [I18nServlet:106] java.lang.IllegalArgumentException: Path ;jsessionid=03EDBB1F3E97BD4121A376488089810E does not start with a "/" character
java.lang.IllegalArgumentException: Path ;jsessionid=03EDBB1F3E97BD4121A376488089810E does not start with a "/" character
at org.apache.catalina.core.ApplicationContext.getRequestDispatcher(ApplicationContext.java:432)
at org.apache.catalina.core.ApplicationContextFacade.getRequestDispatcher(ApplicationContextFacade.java:223)

Screenshot:
anand gopalan, modificado hace 11 años.

RE: Friendly URL

Expert Mensajes: 442 Fecha de incorporación: 2/03/12 Mensajes recientes
Hi,

Any suggestion or guideline. Please let me know how to fix this issue.
thumbnail
Manish Yadav, modificado hace 11 años.

RE: Friendly URL

Expert Mensajes: 493 Fecha de incorporación: 26/05/12 Mensajes recientes
is it working with ....<IP> or localhost:<portnumber>
anand gopalan, modificado hace 11 años.

RE: Friendly URL

Expert Mensajes: 442 Fecha de incorporación: 2/03/12 Mensajes recientes
Hi Manish,

its working with Machine name as well as IP Address.

Machine Name: pfin-fs1

url: http://pfin-fs1/web/guest


ip address: 192.168.100.239

http:// 192.168.100.239/web/guest
anand gopalan, modificado hace 11 años.

RE: Friendly URL

Expert Mensajes: 442 Fecha de incorporación: 2/03/12 Mensajes recientes
Hi All,

I fixed the issue. Thanks for your support & guideline.

Regards
Anand
thumbnail
Manish Yadav, modificado hace 11 años.

RE: Friendly URL

Expert Mensajes: 493 Fecha de incorporación: 26/05/12 Mensajes recientes
Hi Anand could you post your solution how you achieved ,it will be guidance for others. if possible for you could you post full steps of vitural hosting
anand gopalan, modificado hace 11 años.

RE: Friendly URL

Expert Mensajes: 442 Fecha de incorporación: 2/03/12 Mensajes recientes
Hi Manish,

Steps to follow for Friendly URL

1. add friendly URL in the Site setting
Public page: hradmin.in.abc-xyz.com/web/guest

2. add below line in the Portal-ext.properties
company.default.home.url=/web/guest
default.landing.page.path=/web/guest

3. Don't enter anything in HOME URL in Portal setting page

4. Add default Landing page in the portal setting

for example:/web/guest

Hope it will help for others.