In short. To set a custom canonical URL in Rank Math, enable Advanced Mode, edit the post or page, enter the preferred URL in Advanced → Canonical URL, and save.
Definition: A canonical URL identifies the preferred address for duplicate or very similar content. As of 17 October 2026, a custom canonical URL in Rank Math is set in the post or page editor's Advanced tab, in the Canonical URL field, then saved with the post or page.
Key facts
- Rank Math's Advanced tab documentation states that the current post URL becomes the canonical URL even when the field is left unset.
- Rank Math's canonical URL guide places the override in the Advanced tab and instructs saving the page after editing it.
- Rank Math's Advanced Mode guide says that the Advanced tab is available only in Advanced Mode.
- Google's canonical URL documentation describes a canonical link annotation as a strong signal for canonical selection.
Where is the field, and how is the change saved?
Rank Math's Advanced Mode instructions locate the mode switch at WordPress Dashboard → Rank Math SEO → Dashboard. The Advanced Mode control appears in the top-right corner. This enables access to the Advanced tab in the editor's Rank Math meta box, the panel containing the post's SEO settings.
The canonical URL guide gives the editing sequence: open the post or page containing the duplicate content, open Rank Math's Advanced tab, and change Canonical URL to the main source of that content. Saving the post or page stores the change. For a newly created page, the guide specifies Publish.
Does the default URL need replacing?
Rank Math's Advanced tab documentation explains that the URL displayed in the field is a placeholder showing the post's address. Leaving the field unset still produces a canonical URL pointing to the current post. This is a self-referencing canonical: the page identifies its own address as preferred.
A custom value is relevant when a different address should represent the same or similar content. The same documentation relates the default address to the site's permalink settings, which determine post URLs. It also states that settings made inside a post apply to that post.
What should the published HTML contain?
Google's canonical link guidance places the link element in the HTML document's <head> section and recommends absolute URLs, including the scheme and domain. Its example uses this element:
<link rel="canonical" href="https://example.com/dresses/green-dresses" />
For a saved Rank Math override, the published page's corresponding href value should match the preferred address entered in the field. The example address above comes from Google's documentation. The same documentation recommends a self-referencing canonical link on the preferred page itself and consistent internal links to the canonical address.
Related terms
- Canonical URL
- Can a canonical link replace noindex?
- How do I set noindex on a page in Rank Math?
- Where do I compare Google's selected canonical with my declared URL?
FAQ
Why is the Advanced tab missing?
Enable Advanced Mode from WordPress Dashboard → Rank Math SEO → Dashboard. Rank Math's mode documentation identifies the Advanced tab as an option available in that mode.
Must I fill in Canonical URL on every post?
No. Rank Math's Advanced tab documentation says it uses the current post URL when you leave the field unset.
Should I use noindex to choose the preferred duplicate?
Google's canonicalization guidance recommends canonical links for this purpose. It advises against using noindex to select a canonical within a site because that setting blocks the page from Search.
Sources
- Rank Math, "Advanced Tab in Rank Math Meta Box", undated
- Rank Math, "Setting Canonical URLs in Rank Math", undated
- Rank Math, "Rank Math’s Advanced Mode", undated
- Google Search Central, "How to specify a canonical URL with rel=canonical and other methods", 10 July 2026
Check how a page reads to answer engines. Open the GEO score analyzer