Vista Combinata Vista Piatta Vista ad Albero
Discussioni [ Precedente | Successivo ]
toggle
donino pienni
How to check current robots.txt value in Liferay database?
1 luglio 2012 8.34
Risposta

donino pienni

Punteggio: Junior Member

Messaggi: 80

Data di Iscrizione: 2 luglio 2011

Messaggi recenti

Hi,

I use Liferay 6.1 GA1, with tomcat 7 / mysql 5. I have read many threads related to robots.txt issues, but i can't understand my error.

First i have set up a virtual host www.mydomaine1.com in 'portal settings' and in 'site settings', and the search engine optimization was correctly working. Recently i had to change this, i updated virtual host to www.mydomain2.com both in portal settings and site settings. And now, i receive in logs many exceptions such:

1Current URL /robots.txt generates exception: No VirtualHost exists with the key  {hostname=www.mydomain1.com}


The search engine optimization does not work anymore neither for www.domaine1.com (wich is normal), neither for www.mydomain2.com.

i tried many handlings, i even gave a custom template in portal-ext:
1robots.txt.with.sitemap=com/liferay/portal/dependencies/robots_txt_with_sitemap.tmpl


This template is correctly read and displayed in GUI site settings, but i keep receiving these exceptions.

In order to understand what happens, i would need to check robots.txt value stored in lportal database, the first domain name 'mydomain1.com' is still persistent somewhere . Please could anyone tell me in wich table this robots.txt value is supposed to be stored? Any suggestion to resolve this issue will be much appreciated.

Thanks
Hitoshi Ozawa
RE: How to check current robots.txt value in Liferay database?
1 luglio 2012 15.13
Risposta

Hitoshi Ozawa

Punteggio: Liferay Legend

Messaggi: 7990

Data di Iscrizione: 23 marzo 2010

Messaggi recenti

First i have set up a virtual host www.mydomaine1.com in 'portal settings' and in 'site settings'


The error message seems to be saying you've misspelled your virtual domain. Is it "mydomaine1" or mydomain1"
adeel khalid
RE: How to check current robots.txt value in Liferay database?
2 gennaio 2013 3.34
Risposta

adeel khalid

Punteggio: New Member

Messaggi: 1

Data di Iscrizione: 13 agosto 2012

Messaggi recenti

lolz he is talking about sities not about portal instance.! i am also facing this error.
Hitoshi Ozawa
RE: How to check current robots.txt value in Liferay database?
2 gennaio 2013 7.02
Risposta

Hitoshi Ozawa

Punteggio: Liferay Legend

Messaggi: 7990

Data di Iscrizione: 23 marzo 2010

Messaggi recenti

lolz he is talking about sities not about portal instance.! i am also facing this error.


We all know that because we're talking about "Virtual Domain".
Also, you've mispelled "sites".