Ir al contenido
Menú
Se marcó esta pregunta
7 Respuestas
6455 Vistas

I've adjusted my Robots.txt file created automatically by Odoo to allow for google to index my Odoo site after a few days of toiling over how exactly how to do it correctly. Nevertheless, I was shocked to find that my Odoo site is still blocked from Indexing (in the Google Search Console).  The error message is "'noindex' detected in 'robots' meta tag" and it seems to be the last hurdle before my site can be indexed in google.

Does anyone have any idea how to remove this 'noindex' meta tag? I've searched the actual site's source and it is not on the website with the exception of it being in the Robots.txt meta tag (according to Google).

Many thanks

Avatar
Descartar

resolu

Mejor respuesta

I had the same issue. This is how I fixed it.


  1. Go to Website> Site> HTML/CSS Editor

  2. Click Edit HTML Anyway

  3. From the first dropdown, select XML (HTML)

  4. From the second dropdown, select Main Layout. (The template ID of the main layout is website.layout )

  5. Go to line 44.

  6. Find where it says  (website.domain and not website._is_indexable_url(request.httprequest.url_root))

  7. Replace  request.httprequest.url_root with 'https://your-domain.com' (you must use single quotes)

  8. Save and close the file


Avatar
Descartar
Mejor respuesta

It happens because nginx is returning https://localhost/ or the root, however not for any other pages. Not sure yet how to solve this with nginx.

We solved it by editing the Main Layout View on line 44 adding also website._is_indexable_url(website.domain) as a condition.


Avatar
Descartar
Mejor respuesta

I know how to fix that you can chat with me on WhatsApp +201025174783

Avatar
Descartar
Mejor respuesta

Not sure if this is still valid for anyone in this chat, but as I also tried hours how to fix. With my odoo setup it has just been the setup of the domain in website -> configurations. The name just had to be starting with https in stead of http . Then the condition in the qweb templates set the injection of robots=noindex to false and in disappeared.

Avatar
Descartar
Mejor respuesta

vaya al modo de edición de la página web > propiedades > publicar > visibilidad, seleccione, por ejemplo, usuarios registrados u otro diferente a Todos, luego

vaya al mismo menú pero guarde con visitility "All" y el noindex desaparecerá, a mí me funciona

Avatar
Descartar
Mejor respuesta

Hi,

Would you be so kind to share how you fixed it? I am facing a similar issue.

Robots.txt allows the indexation but there is still the following tag in all my pages:  while indexation is enabled in the GUI of all pages. Unfortunatly, I don't retreive any documentation on how to fix it on Odoo.

Thank you!

Avatar
Descartar
Mejor respuesta

I'm following as I have the same issue.

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
0
sept 24
1057
1
dic 23
2283
2
ago 23
2056
1
dic 23
3659
1
jul 23
2644