掲示板

Friendly URL

11年前 に anand gopalan によって更新されました。

Friendly URL

Expert 投稿: 442 参加年月日: 12/03/02 最新の投稿
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
11年前 に anand gopalan によって更新されました。

RE: Friendly URL

Expert 投稿: 442 参加年月日: 12/03/02 最新の投稿
Hi,

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

Regards
Anand
3年前 に anand gopalan によって更新されました。

RE: Friendly URL

Expert 投稿: 442 参加年月日: 12/03/02 最新の投稿
Hi Ezeguiel,

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

添付ファイル:

3年前 に anand gopalan によって更新されました。

RE: Friendly URL

Expert 投稿: 442 参加年月日: 12/03/02 最新の投稿
Hi,

After I follow your guideline, but it fail. please see the screenshot. Please let me know how to fix this issue.
11年前 に anand gopalan によって更新されました。

RE: Friendly URL

Expert 投稿: 442 参加年月日: 12/03/02 最新の投稿
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
11年前 に Manish Yadav によって更新されました。

RE: Friendly URL

Expert 投稿: 493 参加年月日: 12/05/26 最新の投稿
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
11年前 に anand gopalan によって更新されました。

RE: Friendly URL

Expert 投稿: 442 参加年月日: 12/03/02 最新の投稿
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
11年前 に Manish Yadav によって更新されました。

RE: Friendly URL

Expert 投稿: 493 参加年月日: 12/05/26 最新の投稿
you have to add only below properties

company.default.home.url=/web/guest
default.landing.page.path=/web/guest
11年前 に anand gopalan によって更新されました。

RE: Friendly URL

Expert 投稿: 442 参加年月日: 12/03/02 最新の投稿
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
11年前 に Manish Yadav によって更新されました。

RE: Friendly URL

Expert 投稿: 493 参加年月日: 12/05/26 最新の投稿
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
11年前 に Siby Mathew によって更新されました。

RE: Friendly URL

Expert 投稿: 268 参加年月日: 11/03/04 最新の投稿
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
11年前 に anand gopalan によって更新されました。

RE: Friendly URL

Expert 投稿: 442 参加年月日: 12/03/02 最新の投稿
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:
11年前 に anand gopalan によって更新されました。

RE: Friendly URL

Expert 投稿: 442 参加年月日: 12/03/02 最新の投稿
Hi,

Any suggestion or guideline. Please let me know how to fix this issue.
thumbnail
11年前 に Manish Yadav によって更新されました。

RE: Friendly URL

Expert 投稿: 493 参加年月日: 12/05/26 最新の投稿
is it working with ....<IP> or localhost:<portnumber>
11年前 に anand gopalan によって更新されました。

RE: Friendly URL

Expert 投稿: 442 参加年月日: 12/03/02 最新の投稿
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
11年前 に anand gopalan によって更新されました。

RE: Friendly URL

Expert 投稿: 442 参加年月日: 12/03/02 最新の投稿
Hi All,

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

Regards
Anand
thumbnail
11年前 に Manish Yadav によって更新されました。

RE: Friendly URL

Expert 投稿: 493 参加年月日: 12/05/26 最新の投稿
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
11年前 に anand gopalan によって更新されました。

RE: Friendly URL

Expert 投稿: 442 参加年月日: 12/03/02 最新の投稿
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.