Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
778 Tampilan

Hello, seobility says " The canonical link points to a different domain.". I need to know where the line of code is found in html or if there is a line of code I can put in the custom code area to change the current url it is pointing to and change it to the correct one.

Thank you

Avatar
Buang
Penulis

That first step fixed it, thank you so much!!!

Jawaban Terbai

Odoo automatically generates canonical URLs for website pages to prevent duplicate content issues. The canonical URL should reflect the correct domain for your website.

How to Fix the Issue

  1. Check Your Website Settings:
    • Go to Website app.
    • Click on Configuration > Settings.
    • Make sure the Domain field has the correct domain name for your website. For example: www.yourdomain.com. This setting is crucial as Odoo uses it to generate the canonical URLs.
  2. Manual Check on Pages:
    • Go to Website > Site > Pages.
    • Open each page and click on Site > Properties.
    • Verify that the Page URL is correct. While you can modify this, it's more likely the global setting is the root cause.
  3. System Parameter (If Needed):
    • Activate developer mode. To do so, go to Settings, then activate developer mode.
    • Go to Settings > Technical > System Parameters.
    • Search for the key web.base.url.
    • Ensure that the value is set to your correct domain, including https://. For example: https://www.yourdomain.com.
    • If the key doesn't exist, create it.

Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
0
Jul 25
119
0
Jun 25
388
2
Jun 25
446
0
Apr 25
803
1
Mar 25
824