Keep WordPress content unique with canonical URLs
Duplicate content is rarely a single broken link. It often begins when WordPress exposes the same post through an old tracking query string, an attachment page, a category archive, a paginated view, or a URL differing only by www, HTTP, or a trailing slash. Search engines may crawl several versions, divide signals between them, and display whichever they consider most relevant. Repeated content is not automatically a penalty; problems arise when equivalent pages compete for the same query and audience attention.
A reliable strategy combines a self-referencing rel=canonical tag with permanent 301 redirects where an old address has been replaced. The canonical tag identifies the preferred representation, while the redirect moves visitors and link equity to that destination. A canonical tag is advisory, so it should agree with the redirect rather than leave search engines and visitors facing an unnecessary hop. Australian businesses commonly use a .com.au domain and must choose one hostname, secure protocol, and trailing-slash style for the entire site.
Understand the sources of duplication
WordPress creates duplicate routes in several ways. Search, date, author, and category archives can expose excerpts resembling full posts. Media uploads may retain attachment pages even after the attachment becomes unused. WooCommerce adds product filters, sorting parameters, sale views, and multiple category paths. Query arguments such as ?utm_source=newsletter, ?gclid=..., or ?orderby=price create further variants, although some are harmless when they never receive links or internal references. Navigation menus and automated widgets can amplify the problem by linking to filtered or dated views.
Not every duplicate deserves the same response. Exact copies usually need consolidation, while near-duplicates may reflect genuine intent that should be differentiated or combined. A product category and a filtered product list are not interchangeable, and a blog article should not become canonical to a homepage merely because both mention the same subject. The decision depends on intent, query value, indexing demand, and whether the duplicate has useful inbound links. A thin archive generally needs noindex or removal from the index because a canonical tag cannot replace that distinction.
Local conditions make careful URL handling especially relevant. National retailers may publish the same promotion for shoppers in Sydney, Brisbane, Perth, and Adelaide while their stock systems and campaign links remain inconsistent. The Australian Consumer Law requires prices and promotional claims to be accurate, so duplicated product pages showing different prices or availability create a commercial risk as well as a search issue. Daylight-saving changes across Australian states can also cause a poorly configured scheduled-post task to publish twice, leaving competing announcements that require immediate consolidation.
Audit duplicate URLs before changing anything
Begin with a URL inventory rather than a bulk redirect. Export the WordPress post and media URL lists, review the sitemap, inspect robots.txt, and compare them with server access logs. Crawl the live site with a tool that reports status codes, response hashes, titles, and canonical tags. A browser-based suite such as WebTest quality checks can support repeated page checks, while Search Console’s URL Inspection and Coverage reports show which addresses Google has indexed. Record every redirect target as well as its source address and the date of the crawl.
Sort the findings into redirects, parameter variants, archive pages, attachment pages, and genuine content duplication. Look for 200 responses at several addresses, redirect chains, loops, soft 404s, and canonical tags pointing to another domain or a non-equivalent page. Check internal links, XML sitemaps, email campaigns, paid advertisements, social profiles, and printed QR codes because each can preserve an obsolete URL. External backlinks should point to the final destination instead of a tracking URL that may change later.
Assign each URL a single intent: primary product, supporting article, filtered category, or obsolete route. Keep pages that answer a materially different search need, even when they reuse some wording, and consolidate pages that serve the same purpose without independent value. During this review, compare mobile and desktop results because many Australian visitors arrive through a phone while checking products on the move; a desktop-only test can miss JavaScript-generated links or responsive redirects. Confirm that URLs remain stable between staging and production.
Configure canonical URLs correctly
Canonical tags belong in the HTML <head> and should contain one absolute, indexable HTTPS URL. On a unique page, the canonical normally points back to that same page, a practice called a self-canonical. It should not point to a redirect, a noindex page, an unrelated article, or a URL that returns an error. Keep the hostname, protocol, path, and trailing-slash policy identical to the address users can visit. A post available at https://example.com.au/guides/canonical-urls/ should declare that exact URL as its canonical.
WordPress normally emits a canonical tag for singular content through rel_canonical(), and many sites also use an SEO plugin. Choose one source of truth. Two plugins, or a custom theme function that adds another tag, can create conflicting signals, while a plugin setting may disagree with a server redirect. Review the rendered <head> on posts, pages, products, categories, attachments, search results, and pagination. If custom logic is required, filter wp_rel_canonical instead of printing another <link> element. Preserve meaningful parameters on indexable archive URLs while excluding campaign parameters.
Pagination needs page-specific treatment: page two should normally have a self-canonical and its own indexable status rather than pointing to page one. Search results and WooCommerce filter combinations are often better excluded from indexing or blocked from crawling because thousands of near-identical combinations can waste crawl resources. Do not rely on robots.txt alone to remove a URL from the index; it can prevent crawling without guaranteeing deindexing. When equivalent URLs exist, redirect them first and point the remaining canonical to the final destination.
Implement redirects without losing users
Redirects provide a stronger instruction than a canonical hint because they change the response at the server or application level. Use a 301 Moved Permanently response when a post, product, or legacy path has a permanent new home. Use a 302 Found response only for a temporary campaign, test, maintenance route, or seasonal change. Each old URL should lead directly to its closest equivalent page in one hop. Sending every missing page to the homepage is destructive because it hides the missing route and gives visitors an irrelevant destination.
Map redirects with a maintained WordPress plugin, the hosting control panel, or server configuration. An Apache rule can be as direct as Redirect 301 /old-guide/ https://example.com.au/new-guide/, while an Nginx rule can return 301 https://example.com.au/new-guide$is_args$args;. Test whether campaign parameters should survive, and ensure the destination does not redirect again. Set the preferred host at the server level, redirect HTTP to HTTPS, and decide whether www or the apex domain wins before combining these rules.
Application redirects can support migrated IDs or custom request rules, but they must call wp_safe_redirect(), send the intended status code, and stop execution with exit. Otherwise, the browser may continue rendering the requested page after sending the header. If redirect logic depends on custom templates, isolate it in a child theme rather than editing the parent theme. This child theme walkthrough explains how to keep custom code update-safe while parent theme files continue to receive improvements.
Maintain canonical signals after launch
Validate the finished setup with crawls and small test groups. The live response for every canonical destination should be 200, every obsolete address should reach it through one 301, and no page should contain multiple canonical tags. Inspect raw HTML as well as rendered results because JavaScript can alter links after the initial response. Re-submit clean sitemaps, update internal references, and monitor Search Console for duplicate host variants, soft 404s, and canonical reports. Protect staging with noindex and access controls so it cannot compete with the Australian production site.
Logs and analytics must meet Australian privacy expectations. For covered organisations, the Privacy Act 1988 and Australian Privacy Principles govern personal information, including customer identifiers and IP data retained in server logs. Limit retained data, secure administrative access, and avoid sending full search-console or analytics exports through temporary file-sharing services. The same discipline matters for WooCommerce stores using customer accounts, since duplicate URLs can complicate support attribution and expose the wrong account-specific page in search results.
Canonical and redirect rules need ownership and scheduled review after plugin, theme, permalink, or hosting changes. Keep a record of old URLs, destinations, reasons, and dates, then remove entries once they no longer serve a known campaign or backlink. Recheck the preferred .com.au hostname, mobile navigation, product prices, and indexability after each release. When these controls agree, each page presents one stable address, search signals remain concentrated, and visitors reach the intended Australian content without unnecessary detours.