Redundant Canonical

  • Hi guys,
    when I activate the AMP plugin, google will give me an error, that there are two canonicals in the page. And there are, I have checke 😉
    When I deactivate the plugin, there will be only one again.
    I am using AmpforWP for the AMP-pages.
    Do you have any idea what to do? Basically, the AMP-Plugin should only generate the metas and NOT another canonical link…

Viewing 8 replies - 1 through 8 (of 8 total)
  • Hello,

    Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.

    I have just tested the AMP for WP plugin with the Rank Math module but I cannot reproduce the double canonical problem. Could you please check if this is related to your current theme by temporarily switching to one of the stock WP themes?

    Looking forward to helping you. Thank you.

    ​​​​​​​

    Thank you for the fast response. I will try that and post my findings here.

    Hi Dirk,

    I will be looking forward to your response.

    Thank you.

    Hi Michael,
    haven’t been able to test another theme yet, but I experimentally switched on the amp plugin and copied the part of the sourcecode with the redundant canonical in it. Here it is – maybe you already find the problem there…

    
    <!doctype html> <html amp lang="de-DE"> <head> <meta charset="utf-8"> <link rel="dns-prefetch" href="https://cdn.ampproject.org"> <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=2,user-scalable=yes">  <title>Tantra & Seminar: Tantraseminare in Berlin | Dirk Liesenfeld</title> <meta name="description" content="Der Tantra und Seminar Blog von Dirk Liesenfeld. Spannende und aktuelle Themen über Liebe, Leben, Tantra und Sinnlichkeit."/> <meta name="robots" content="follow,index,max-snippet:-1,max-video-preview:-1,max-image-preview:large"/> <link rel="canonical" href="https://www.liesenfeld.de/" /> <link rel="next" href="https://www.liesenfeld.de/page/2/" /> <meta property="og:locale" content="de_DE"> <meta property="og:type" content="website"> <meta property="og:title" content="Gut und Böse - was ist Richtig und was ist Falsch? ~ Dirk Liesenfeld"> <meta property="og:description" content="Der Tantra und Seminar Blog von Dirk Liesenfeld. Spannende und aktuelle Themen über Liebe, Leben, Tantra und Sinnlichkeit."> <meta property="og:url" content="https://www.liesenfeld.de/"> <meta property="og:site_name" content="Dirk Liesenfeld"> <meta name="twitter:card" content="summary_large_image"> <meta name="twitter:title" content="Gut und Böse - was ist Richtig und was ist Falsch? ~ Dirk Liesenfeld"> <meta name="twitter:description" content="Der Tantra und Seminar Blog von Dirk Liesenfeld. Spannende und aktuelle Themen über Liebe, Leben, Tantra und Sinnlichkeit."> <script type="application/ld+json">[{"@context":"https:\/\/schema.org\/","@type":"Blog","url":"https:\/\/www.liesenfeld.de\/blog-und-mehr\/blog\/","headline":"Blog zu Tantra und Selbsterkenntnis","description":"","blogPost":[{"@type":"BlogPosting","headline":"Gut und B\u00f6se – was ist Richtig und was ist Falsch?","name":"Gut und B\u00f6se – was ist Richtig und was ist Falsch?","url":"https:\/\/www.liesenfeld.de\/tantra\/gut-und-boese-was-ist-richtig-und-was-ist-falsch\/","mainEntityOfPage":"https:\/\/www.liesenfeld.de\/tantra\/gut-und-boese-was-ist-richtig-und-was-ist-falsch\/","dateModified":"2019-11-09T08:35:40+01:00","datePublished":"2019-11-09T08:25:49+01:00","author":{"@type":"Person","name":"Dirk","url":"https:\/\/www.liesenfeld.de\/author\/dirk\/","image":{"@type":"ImageObject","url":"https:\/\/secure.gravatar.com\/avatar\/3d7388725e74c8d9c843ea7c0f0ccb65?s=96&d=identicon&r=pg","height":96,"width":96}},"publisher":{"@type":"Organization","name":"DIRK LIESENFELD","logo":{"@type":"ImageObject","url":"https:\/\/www.liesenfeld.de\/WP\/wp-content\/uploads\/49-177-2345890-20190309_102741.jpg"}},"image":{"@type":"ImageObject","url":"https:\/\/www.liesenfeld.de\/WP\/wp-content\/uploads\/tn_gutundboese.jpg","height":2832,"width":4758},"keywords":[],"commentCount":"2","comment":[{"@type":"Comment","dateCreated":"2019-11-11 21:51:46","description":"Danke :-)","author":{"@type":"Person","name":"Dirk","url":"https:\/\/www.Liesenfeld.de"}},{"@type":"Comment","dateCreated":"2019-11-09 22:39:54","description":"Sch\u00f6n geschrieben und ziemlich einpr\u00e4gsam. ","author":{"@type":"Person","name":"Scharfb@t-online.de","url":""}}],"wordCount":1687}]}]</script>  <meta name="description" content="Tantraseminare zur Selbsterkenntnis: was ist das Besondere? Tantra, Seminare und auch die Ausbildungen sind in&hellip;"/> <link rel="canonical" href="https://www.liesenfeld.de/"> <meta name="amp-google-client-id-api" content="googleanalytics"> <title>Tantra & Seminar: Tantraseminare in Berlin | Dirk Liesenfeld</title> <meta name="generator" content="AMP for WP 0.9.98.14" /> <script custom-element="amp-anim" src="https://cdn.ampproject.org/v0/amp-anim-latest.js" async></script> <script custom-element="amp-audio" src="https://cdn.ampproject.org/v0/amp-audio-latest.js" async></script> <script custom-element="amp-iframe" src="https://cdn.ampproject.org/v0/amp-iframe-latest.js" async></script> <script custom-element="amp-social-share" src="https://cdn.ampproject.org/v0/amp-social-share-latest.js" async></script> <script custom-element="amp-position-observer" src="https://cdn.ampproject.org/v0/amp-position-observer-0.1.js" async></script> <script custom-element="amp-animation" src="https://cdn.ampproject.org/v0/amp-animation-0.1.js" async></script> <script custom-element="amp-form" src="https://cdn.ampproject.org/v0/amp-form-0.1.js" async></script> <script custom-element="amp-analytics" src="https://cdn.ampproject.org/v0/amp-analytics-0.1.js" async></script> <script src="https://cdn.ampproject.org/v0.js" async></script> 

    And here is the code with the plugin switched off:

    
    
    <!doctype html> <html amp lang="de-DE"> <head> <meta charset="utf-8"> <link rel="dns-prefetch" href="https://cdn.ampproject.org"> <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=2,user-scalable=yes"> <meta name="description" content="Tantraseminare zur Selbsterkenntnis: was ist das Besondere? Tantra, Seminare und auch die Ausbildungen sind in&hellip;"/> <link rel="canonical" href="https://www.liesenfeld.de/"> <meta name="amp-google-client-id-api" content="googleanalytics"> <title>Tantra & Seminar: Tantraseminare in Berlin | Dirk Liesenfeld</title> <meta name="generator" content="AMP for WP 0.9.98.14" /> <script custom-element="amp-anim" src="https://cdn.ampproject.org/v0/amp-anim-latest.js" async></script> <script custom-element="amp-audio" src="https://cdn.ampproject.org/v0/amp-audio-latest.js" async></script> <script custom-element="amp-iframe" src="https://cdn.ampproject.org/v0/amp-iframe-latest.js" async></script> <script custom-element="amp-social-share" src="https://cdn.ampproject.org/v0/amp-social-share-latest.js" async></script> <script custom-element="amp-position-observer" src="https://cdn.ampproject.org/v0/amp-position-observer-0.1.js" async></script> <script custom-element="amp-animation" src="https://cdn.ampproject.org/v0/amp-animation-0.1.js" async></script> <script custom-element="amp-form" src="https://cdn.ampproject.org/v0/amp-form-0.1.js" async></script> <script custom-element="amp-analytics" src="https://cdn.ampproject.org/v0/amp-analytics-0.1.js" async></script> <script src="https://cdn.ampproject.org/v0.js" async></script>

    Hi there,

    Thanks for the response.

    It looks like the meta description is duplicated as well which furthers my suspicion that this is related to a conflict on your end.
    You do not have to manually disable plugins and your theme, please follow the instructions here: https://rankmath.com/kb/check-plugin-conflicts/

    Thank you.

    Ok. I will try that step by step. But I will have to keep the ampforWP and the amp layout Plugins enabled, because it only concerns the amp Version.
    I still have Yoast installed but disabled. This couldn’t be the cause of the Problem, right?

    Hello,

    Thank you for contacting Rank Math today.

    I do not think that this is related to the presence of Yoast but you can go ahead and flush your site cache to check if this will have an effect on the issue.

    Looking forward to helping you. Thank you.

    ​​​​​​

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 8 replies - 1 through 8 (of 8 total)

The ticket ‘Redundant Canonical’ is closed to new replies.