Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
7 Відповіді
5785 Переглядів

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

Аватар
Відмінити

resolu

Найкраща відповідь

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


Аватар
Відмінити
Найкраща відповідь

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.


Аватар
Відмінити
Найкраща відповідь

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

Аватар
Відмінити
Найкраща відповідь

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.

Аватар
Відмінити
Найкраща відповідь

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

Аватар
Відмінити
Найкраща відповідь

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!

Аватар
Відмінити
Найкраща відповідь

I'm following as I have the same issue.

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
0
вер. 24
662
1
груд. 23
1713
2
серп. 23
1589
1
груд. 23
2942
1
лип. 23
2242