-
Hi! I have 1,114 pages that are not indexable and non-canonical.
https://monosnap.com/file/P3um3RWShs8aM6p4GYYhTYCUjDoEfP
The canonical URLs are URLs from stackpathdns instead.
https://monosnap.com/file/DxHUqmn0F0lW36WN95gqfO89NowoxjCan you guide me on how to fix that via Rank Math plugin or any other method if necessary?
-
Hello,
Thank you for contacting us and sorry for any inconvenience that might have been caused due to that.
If you want to set the canonical URL to be the same URL of the page instead of the CDN please use the following filter:
add_filter( 'rank_math/frontend/canonical', function( $canonical ) { $canonical = 'https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; return $canonical; });This can be added to your website with one of the methods mentioned here: https://rankmath.com/kb/wordpress-hooks-actions-filters/
Hope this helps solve your issues.
Don’t hesitate to get in touch if you have any other questions.
Hi Miguel~ Thank you for the response.
I have tried the method above.
https://monosnap.com/file/Ki0mgvRLMwIU1r91hVO3g6iOM4slm4
But the canonical issue is still recurring after I did another audit. In fact the number is increased.Is there any other way I can try?
Hello,
We might need to take a closer look at the settings. Please edit the first post on this ticket and include your WordPress & FTP logins in the designated Sensitive Data section.
Please do 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/
You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):
https://wordpress.org/plugins/wp-security-audit-log/
We really look forward to helping you.
Thank you
Sorry, I’m still asking for the FTP credentials. I will edit my post again after I got it,
Hello,
I have updated the sensitive data as requested. Can you please check further?
Thank you.
Hello,
I have updated the sensitive data as requested. Can you please check further?
Thank you.
Hello,
I have updated the sensitive data as requested. Can you please check further?
Thank you.
The FTP logins will need to use phone verification.
Can you suggest a way over it?
I hope the wp admin is enough to fix the issue.
Please let me know.Thank you so much.
Hello,
I checked your website and the plugin ‘.html after URL’ seems to be preventing the redirects from functioning correctly. We recommend disabling the html after URL and redirecting all the “.html” pages to the ‘/’ versions.
Please provide access to a staging site so we can troubleshoot further without risk of breaking the live site.
Looking forward to helping you.
Hi Nigel,
I’m afraid there is no staging site for that.Do you have other suggestions aside from disabling the .html plugin?
Hello,
You will need to get in touch with the support of the .html after URL plugin and inform them about the issue. They will be able to help you with this.
Please don’t hesitate to get in touch in case you need any other assistance.
Thanks.
Thank you so very much for the help and suggestions~~!!
Will contact the plugin’s support now.Hello,
We are super happy that we could address your concern. 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 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.
The ticket ‘How to Fix Non-Canonical Pages on Sitemap’ is closed to new replies.