콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
7 답글
6502 화면

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.

아바타
취소
관련 게시물 답글 화면 활동
0
9월 24
1078
1
12월 23
2322
2
8월 23
2082
1
12월 23
3677
1
7월 23
2659