Skip to Content
Menu
This question has been flagged
7 Replies
5925 Views

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
Discard

resolu

Best Answer

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
Discard
Best Answer

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
Discard
Best Answer

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

Avatar
Discard
Best Answer

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
Discard
Best Answer

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
Discard
Best Answer

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
Discard
Best Answer

I'm following as I have the same issue.

Avatar
Discard
Related Posts Replies Views Activity
0
Sep 24
764
1
Dec 23
1804
2
Aug 23
1683
1
Dec 23
3087
1
Jul 23
2335