Hello,
I apologize for the issue you are facing with Google not indexing your pages/posts due to the “duplicate without user-selected canonical” error. To set a default Canonical URL for all posts in Rank Math, you can follow these steps:
- Go to your WordPress Dashboard.
- Navigate to Rank Math > Titles & Meta > Global Meta.
- Scroll down to the Canonical URLs section.
- In the Default Canonical URL field, enter the URL that you want to set as the default Canonical URL for all posts.
- Save your changes.
By setting a default Canonical URL in the Global Meta settings of Rank Math, you can ensure that all your posts have the same Canonical URL unless individually overridden.
If you encounter any difficulties or need further assistance, please feel free to reply here, and we will be happy to help.
Thank you for reaching out to us!
Sources:
How to Fix ‘Duplicate, Submitted URL Not Selected as Canonical’ Issue in Google Search Console » Rank Math
How to Fix ‘Duplicate Without User-Selected Canonical’ Status in Google Search Console » Rank Math
Setting Canonical URLs in Rank Math » Rank Math
How to Fix “Duplicate, Google Chose Different Canonical than User” » Rank Math
Alternate Page with Proper Canonical Tag Status in Google Search Console » Rank Math
There is Canonical URLs section to scroll down to.
I have:
– Robots Meta
– Advanced Robots Meta
– Noindex Empty Category and Tag Archives
– Separator Character
– Rewrite Titles
– Capitalize Titles
– OpenGraph Thumbnail
– Twitter Card Type
Hello,
Thank you for contacting us and sorry for any inconvenience that might have been caused due to that.
Please ignore the reply from the RankBot.
Rank Math automatically includes the self-referencing canonical to your posts and pages unless you change them manually.
If you changed the default canonical URL in the past then we have a bulk option to set the default again but it is only available in the PRO version of the plugin. For more details, you can check this URL: https://rankmath.com/kb/bulk-editing-in-rank-math/#remove-custom-canonical-url
In the free version of the plugin, you’ll have to change the custom canonical URL manually or you can use the following filter on your website to set self-referencing canonical all over your site.
add_filter( 'rank_math/frontend/canonical', function( $canonical ) {
global $wp;
$current_slug = home_url( $wp->request );
$canonical = $current_slug;
return $canonical;
});
Here’s how you can add filter/hook to your WordPress site:
https://rankmath.com/kb/wordpress-hooks-actions-filters/
Hope that helps and please don’t hesitate to let us know if you have any other questions.
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.