Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
7 Odpowiedzi
5792 Widoki

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

Awatar
Odrzuć

resolu

Najlepsza odpowiedź

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


Awatar
Odrzuć
Najlepsza odpowiedź

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.


Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Najlepsza odpowiedź

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.

Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Najlepsza odpowiedź

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!

Awatar
Odrzuć
Najlepsza odpowiedź

I'm following as I have the same issue.

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
0
wrz 24
664
1
gru 23
1717
2
sie 23
1594
1
gru 23
2948
1
lip 23
2246