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:
- Check the settings in the AMP plugin to ensure that the canonical URLs are correctly configured.
- 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.
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.
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.