Vista combinada Visión Plana Vista de árbol
Discusiones [ Anterior | Siguiente ]
Norbert Bede
Robots.txt for each virtual hosts - doesnt works
3 de octubre de 2009 1:32
Respuesta

Norbert Bede

Ranking: Junior Member

Mensajes: 38

Fecha de incorporación: 19 de abril de 2009

Mensajes recientes

Good day community,

We have a liferay deployment with multitenant setup and with more domains hosted. We want now correct way handle SEO policies, and needs to be install right way robots.txt tactic.

We are did setup by the next way.
wiki post

MY PROBLEM
Problem is related to the organisation with public area with defined domain: www.abc.com :
when I type to the browser http://www.domain.com/robots.txt, then rewrite rule redirect lr to the address http://www.domain.com/robots_abc.com.txt, and the page body says page doesn't exists.

any similar experience ?

norbert
Lisa Simpson
RE: Robots.txt for each virtual hosts - doesnt works
5 de octubre de 2009 7:43
Respuesta

Lisa Simpson

Ranking: Liferay Legend

Mensajes: 2034

Fecha de incorporación: 5 de marzo de 2009

Mensajes recientes

We did by putting each virtual on a custom theme and just shoving it into the portal_normal.vm. Ugly I know, but workable.
Norbert Bede
RE: Robots.txt for each virtual hosts - doesnt works
15 de noviembre de 2009 23:41
Respuesta

Norbert Bede

Ranking: Junior Member

Mensajes: 38

Fecha de incorporación: 19 de abril de 2009

Mensajes recientes

Hi Lisa,

I'm dont understand your solution exactly. Could you please describe more detailed ?
norbert

Lisa Simpson:
We did by putting each virtual on a custom theme and just shoving it into the portal_normal.vm. Ugly I know, but workable.
Lisa Simpson
RE: Robots.txt for each virtual hosts - doesnt works
16 de noviembre de 2009 13:24
Respuesta

Lisa Simpson

Ranking: Liferay Legend

Mensajes: 2034

Fecha de incorporación: 5 de marzo de 2009

Mensajes recientes

You can hard link the robots.txt by shoving the link inot the head of the portal_normal.vm just like you would a flat HTML page.
Miguel Ángel Pau
RE: Robots.txt for each virtual hosts - doesnt works
26 de abril de 2010 0:59
Respuesta

Miguel Ángel Pau

Ranking: Regular Member

Mensajes: 143

Fecha de incorporación: 26 de abril de 2005

Mensajes recientes

Hi Norbert,

Did you solve the problem with robots.txt finally?
I wrote the wiki post basing on our experience and it works!

regards!
Matthias Fenz
RE: Robots.txt for each virtual hosts - doesnt works
9 de junio de 2010 1:07
Respuesta

Matthias Fenz

Ranking: Junior Member

Mensajes: 79

Fecha de incorporación: 24 de marzo de 2009

Mensajes recientes

Lisa Simpson:
You can hard link the robots.txt by shoving the link inot the head of the portal_normal.vm just like you would a flat HTML page.


hi lisa, can you tell how this hardlinking would look like?

thanks in advance...
Lisa Simpson
RE: Robots.txt for each virtual hosts - doesnt works
9 de junio de 2010 13:57
Respuesta

Lisa Simpson

Ranking: Liferay Legend

Mensajes: 2034

Fecha de incorporación: 5 de marzo de 2009

Mensajes recientes

Do you know how to link to one from a static HTML file??? It's exactly the same.
Miguel Ángel Pau
RE: Robots.txt for each virtual hosts - doesnt works
10 de junio de 2010 2:31
Respuesta

Miguel Ángel Pau

Ranking: Regular Member

Mensajes: 143

Fecha de incorporación: 26 de abril de 2005

Mensajes recientes

Hi Lisa,

Are you using a <link rel="... meta in <head> to link a robots.txt file ????
David Truong
RE: Robots.txt for each virtual hosts - doesnt works
14 de octubre de 2010 1:28
Respuesta

David Truong

LIFERAY STAFF

Ranking: Expert

Mensajes: 312

Fecha de incorporación: 23 de marzo de 2005

Mensajes recientes

Hey guys,

I checked in a feature that will let you set a robots.txt for each virtual host.

Not sure if it will get back ported but its in the latest trunk

http://issues.liferay.com/browse/LPS-13198
Miguel Ángel Pau
RE: Robots.txt for each virtual hosts - doesnt works
14 de octubre de 2010 1:36
Respuesta

Miguel Ángel Pau

Ranking: Regular Member

Mensajes: 143

Fecha de incorporación: 26 de abril de 2005

Mensajes recientes

we pray for it!! emoticon

It would be a great news if it covers independent sitemaps too!!
Mauro Mariuzzo
RE: Robots.txt for each virtual hosts - doesnt works
18 de octubre de 2010 8:51
Respuesta

Mauro Mariuzzo

Ranking: Regular Member

Mensajes: 139

Fecha de incorporación: 23 de julio de 2007

Mensajes recientes

I've looked at the trunk code.

I'm building a tomcat dist to try & check it. But:
  • in a similar develop made for a customer in LR-5.1 I've added "sitemap.xml" and "robots.txt" to virtual.hosts.ignore.paths property
  • to help crawler, user has to manually add "sitemap" directive into the text area. Maybe this can be done automatically
Oleg True Pick
RE: Robots.txt for each virtual hosts - doesnt works
17 de enero de 2011 9:45
Respuesta

Oleg True Pick

Ranking: Junior Member

Mensajes: 80

Fecha de incorporación: 8 de septiembre de 2008

Mensajes recientes

Lisa Simpson:
Do you know how to link to one from a static HTML file??? It's exactly the same.



Lisa, I beg of you to bring your example, for clarity ... use portal_normal.vm?

SOLVED

decided to simply...I created the page over manage pages with the name of a robot.txt and assign values to URL,link to file robots_site-name.com.txt put in Root directory.
Tarkan Corak
RE: Robots.txt for each virtual hosts - doesnt works
14 de octubre de 2010 2:43
Respuesta

Tarkan Corak

Ranking: Regular Member

Mensajes: 130

Fecha de incorporación: 7 de octubre de 2008

Mensajes recientes

Hi,

Below you'll find my solution:

1. Set document root in your Apache configuration for each virtual host. Create one separate subdirectory for each one.
DocumentRoot /document-root/of-my-instance


and put your robots.txt in there.

2. Use JkUnMount to make sure Apache will pick it from the document root.
JkUnMount /robots.txt

Do this for all of your virtual hosts and restart Apache.

Tarkan