AMP Canonical Problem

#758039
  • Resolved Ali Çatal
    Rank Math free

    I’m working on a different project. I use amp for wp ahmed khaludi plugin and normally canonicals show up correctly on amp page. However, I redirected a different domain to my home page with WP Landing Kit. I can access my amp page, but the custom domain that I redirect to my standard amp page is the same as the domain typed in the browser’s address bar. I tried many ways to change this but failed. In the AMP plugin settings, the Get canonicals from sorting math setting is turned on. When I go to amp.example.com, which I set up with the WP landing kit, the canonical url is amp.example.com, but my desktop version that should be is b.com. This problem does not occur if I access it normally rather than through the domain name I specified with the WP landing kit. This is correct canonical. How Can I Solve This? It was really tiring but I couldn’t find a solution.

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

    I apologize for the issue you are facing with the AMP canonicals on your website. It seems like there might be a conflict between the canonical URLs set up by the WP Landing Kit and the AMP plugin.

    To resolve this issue, you can follow these steps:

    1. Check the settings in the AMP plugin to ensure that the canonical URLs are correctly configured.
    2. If the AMP plugin is not handling the canonical URLs as expected, you can set up redirections using Rank Math’s Redirection Manager to redirect all AMP pages to non-AMP pages. This will help ensure that the correct canonical URLs are served to your visitors.

    You can refer to this guide on how to redirect all AMP pages to non-AMP pages using Rank Math: Redirect all AMP pages to non-AMP pages » Rank Math.

    If you continue to experience difficulties after following these steps, please provide more details or screenshots of the issue so that we can assist you further.

    Thank you for bringing this concern to our attention. We are here to help you resolve this matter efficiently.

    Sources:
    Redirect all AMP pages to non-AMP pages » Rank Math
    How to Fix “Duplicate, Google Chose Different Canonical than User” » Rank Math
    How to Fix ‘Duplicate Without User-Selected Canonical’ Status in Google Search Console » Rank Math
    Alternate Page with Proper Canonical Tag Status in Google Search Console » Rank Math

    Hello,

    Thank you for your query, and we are so sorry about the trouble this must have caused.

    Can you please share the affected URLs with us? So that we can investigate the issue further for you.

    We really look forward to helping you.

    Thank you.

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Hello,

    Thank you for contacting Rank Math support.

    The canonical tag on the AMP page doesn’t seem to come from our plugin, as it is outside the meta tags section of our plugin. Also, please share more details about the setup and the issue. You can share some screenshots using a tool like https://imgur.com/

    Looking forward to helping you.

    I put the following code in the comment line in wp landing kit.

    public function override( Domain $domain ) {
    $this->domain = $domain;
    $this->request->listen();
    add_filter( ‘pre_option_rewrite_rules’, [ $this, ‘_set_rewrite_rules’ ] );
    add_action( ‘parse_request’, [ $this, ‘_handle_custom_query_variable_mapping’ ] );
    add_filter( ‘template_redirect’, [ $this, ‘_handle_matched_redirect_rules’ ] );
    // Remove the canonical redirect — this ensures we don’t load up other random posts/pages that WordPress
    // resolves to when fielding requests on secondary domains.
    —-> //remove_filter( ‘template_redirect’, ‘redirect_canonical’ );

    $this->run_replacer();
    }

    Apart from this, rank math seo is selected in the canonical setting for amp for wp. I don’t have any other settings. I don’t understand what kind of detail you want to see.

    Hello,

    In this case we might need to take a closer look at the settings.

    Could you please share your WordPress logins and take a complete backup of your website before sharing the information with us.

    It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:

    https://wordpress.org/plugins/temporary-login-without-password/

    Here’s is how you can share your WordPress login URL by using the “Temporary Login Without Password” plugin: https://i.rankmath.com/v/BbufYj

    We really look forward to helping you.

    Thank you.

    Hmz
    Rank Math free

    Thank you

    Hello,

    It seems that you have missed adding the information in the sensitive data section.

    You can follow my colleague’s previous reply to edit your first post and include your WordPress logins.

    Looking forward to helping you.

    Ali Çatal
    Rank Math free

    I solved it in a different way, thank you.

    Hello,

    We are super happy that this resolved your issue. If you have any other questions in the future, know that we are here to help you.

    If you don’t mind me asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post or TrustPilot about your overall experience with Rank Math? We appreciate your time and patience.

    If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.

    Thank you.

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

The ticket ‘AMP Canonical Problem’ is closed to new replies.