Foren
Redirect to Liferay site
Manish Yadav, geändert vor 11 Jahren.
Redirect to Liferay site
Expert Beiträge: 493 Beitrittsdatum: 26.05.12 Neueste Beiträge
Hi All,
I have one requirement of redirection from java application to lifeary site. Two server are running on single machine .One normal java web application portt number 80 and second is liferay portal server on different port number eg:-9090.
for eg:- java web application url is :- www.xyz.com
if somebody type www.xyz.com/abc then it should go to liferay portal ..
any body have idea how i can achieve this.
I have one requirement of redirection from java application to lifeary site. Two server are running on single machine .One normal java web application portt number 80 and second is liferay portal server on different port number eg:-9090.
for eg:- java web application url is :- www.xyz.com
if somebody type www.xyz.com/abc then it should go to liferay portal ..
any body have idea how i can achieve this.
Gnaniyar Zubair, geändert vor 11 Jahren.
RE: Redirect to Liferay site
Liferay Master Beiträge: 722 Beitrittsdatum: 19.12.07 Neueste Beiträge
Manish,,
you can auto redirect like this: give below code in your home page ( index.html) of normal application
HTH
- Gnaniyar Zubair
you can auto redirect like this: give below code in your home page ( index.html) of normal application
<title>Redirecting to Liferay</title>
<meta http-equiv="refresh" content="1; URL=http://www.google.com/">
<meta name="keywords" content="automatic redirection">
HTH
- Gnaniyar Zubair
Gnaniyar Zubair, geändert vor 11 Jahren.
RE: Redirect to Liferay site
Liferay Master Beiträge: 722 Beitrittsdatum: 19.12.07 Neueste Beiträge
you can increase the redirection time by setting seconds value :
content=3 for redirecting in 3 seconds
Manish Yadav, geändert vor 11 Jahren.
RE: Redirect to Liferay site
Expert Beiträge: 493 Beitrittsdatum: 26.05.12 Neueste Beiträge
Thanks Zubiar,
But my requirement is slightly different .
if anybody type URL as www.xyz.com then request has to go JAVA WEB APPLICATION .if somebody is typing www.xyz.com/abc then it should to go liferay portal server.
both servers are in running on same machine on different different ports
But my requirement is slightly different .
if anybody type URL as www.xyz.com then request has to go JAVA WEB APPLICATION .if somebody is typing www.xyz.com/abc then it should to go liferay portal server.
both servers are in running on same machine on different different ports
Gnaniyar Zubair, geändert vor 11 Jahren.
RE: Redirect to Liferay site
Liferay Master Beiträge: 722 Beitrittsdatum: 19.12.07 Neueste Beiträge
Yes Manish. you can give the meta tag in both server.
if JAVA Application to LIFERAY,
if LIFERAY to JAVA,
if JAVA Application to LIFERAY,
Add that meta attribute in index.html
if LIFERAY to JAVA,
Add that meta attribute in portal_normal.vm
Oliver Bayer, geändert vor 11 Jahren.
RE: Redirect to Liferay site
Liferay Master Beiträge: 894 Beitrittsdatum: 18.02.09 Neueste Beiträge
Hi Manish,
you should be able to achieve this by adding a virtual host file to the apache webserver you're certainly running in front of liferay. Add a file to the sites-enabled folder of apache and use e.g. a rewrite rule.
HTH Oli
you should be able to achieve this by adding a virtual host file to the apache webserver you're certainly running in front of liferay. Add a file to the sites-enabled folder of apache and use e.g. a rewrite rule.
HTH Oli
Manish Yadav, geändert vor 11 Jahren.
RE: Redirect to Liferay site
Expert Beiträge: 493 Beitrittsdatum: 26.05.12 Neueste Beiträge
Thanks Oliver Bayer,
could you please provide a sample of properties file. actually my requirement is www.xyz.com servlet web application running on tomcat . www.xyz.com have one logo on home page, if anybody clicks on that logo than liferay abc community page should open. it means www.xyz..com/abc. both server are running on same machine..
could you please let me know what are the properties files i need to change in web-server to achieve this functionality
could you please provide a sample of properties file. actually my requirement is www.xyz.com servlet web application running on tomcat . www.xyz.com have one logo on home page, if anybody clicks on that logo than liferay abc community page should open. it means www.xyz..com/abc. both server are running on same machine..
could you please let me know what are the properties files i need to change in web-server to achieve this functionality
Gnaniyar Zubair, geändert vor 11 Jahren.
RE: Redirect to Liferay site
Liferay Master Beiträge: 722 Beitrittsdatum: 19.12.07 Neueste Beiträge
Hi Manish,
If you want to redirect by clicking the logo, then give the entire redirection path in href.
< a href="<Liferay URL>" > Logo </a>
Sorry if i am wrong
If you want to redirect by clicking the logo, then give the entire redirection path in href.
< a href="<Liferay URL>" > Logo </a>
Sorry if i am wrong
devaraj s, geändert vor 11 Jahren.
RE: Redirect to Liferay site
Regular Member Beiträge: 228 Beitrittsdatum: 21.05.12 Neueste Beiträge
is already liferay running in www.xyz.com/abc ?
If not follow virtual server concept, In my case also same we are running liferay in www.xyz.com and java web application in www.xyz.com/abc.
If not follow virtual server concept, In my case also same we are running liferay in www.xyz.com and java web application in www.xyz.com/abc.