Hello,
I apologize for the inconvenience you’re experiencing with the canonical URL on your staging site. It seems that the default canonical self-reference is not appearing as expected when using Rank Math on the staging site, while it is present when using Yoast SEO on the live site.
To address this issue, you can easily set the canonical URL using Rank Math. You can navigate to the Advanced tab in the Rank Math meta box and change the Canonical URL field to point to the main source of your content. This will inform search crawlers of the main page if you have pages or posts with similar content.
Here’s a reference screenshot for setting the Canonical URL in Rank Math:

Once you’ve set your Canonical URL, simply update the page as you normally would after making a change or click Publish if it is a newly created page.
If you need further assistance with this, please feel free to reach out to our support team directly from here, and we’re always here to help.
Thank you for bringing this to our attention, and we appreciate your patience as we work to resolve this issue for you.
Sources:
How to Fix ‘Duplicate Without User-Selected Canonical’ Status in Google Search Console » Rank Math
How to Fix ‘Duplicate, Submitted URL Not Selected as Canonical’ Issue in Google Search Console » Rank Math
Setting Canonical URLs in Rank Math » Rank Math
Alternate Page with Proper Canonical Tag Status in Google Search Console » Rank Math
The bot yust reepats what is in the helpfile. I need a fix ore a direction for the general settings.
Hello,
Thank you for your patience.
Please note that Rank Math only adds the canonical tag if a page is set to index.
Once you have applied Rank Math to your site, a self-referencing canonical URL will be shown as well to your pages.
Hope that helps.
hi,
about “Please note that Rank Math only adds the canonical tag if a page is set to index.”
the individueal page is on index. Only the general setting for noindex whole website under Settings » Reading and check the box next to ‘Search Engine Visibility’.
So, should the canonical then be there?
I want to now before I move rankmath to production website.
Hello,
When the WordPress Reading setting is set to discourage search engines from indexing the site, Rank Math will noindex the entire site, including individual pages – regardless of the individual index settings.
So to test this, you can temporarily untick the Search engine visibility checkbox and clear your cache to see if it works.
Let us know how it goes.
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.