Skip to content
SEO 2 min read

What is a canonical URL and why does my hotel need one?

Short answer

A canonical URL is the version of a page you want search engines to treat as the main one when several URLs show the same or very similar content. Hotel websites create duplicates easily — booking-engine parameters, tracking tags, trailing slashes, print views, or the same room page in several paths. Declaring a canonical (usually with a rel="canonical" link tag, backed up by redirects where possible) helps Google consolidate signals onto one URL. Google treats it as a strong hint, not a command, so your other signals should agree with it.

By Lodging Engine Editorial Team· Reviewed by Eric Zwanenburg· Last reviewed

Why duplicates happen on hotel websites

  • Booking and tracking parameters: /rooms/deluxe?checkin=2027-05-01&utm_source=newsletter
  • Trailing slashes and case: /rooms/deluxe vs /rooms/deluxe/ vs /Rooms/Deluxe
  • HTTP and HTTPS, www and non-www variants
  • The same content in two sections: a room listed under /rooms/ and /offers/
  • Language versions without hreflang, which can look like duplicates

How canonicalization works

Google's documentation describes several methods, from strongest to weakest:

  1. Redirects — a permanent redirect (301 or 308) sends users and search engines to the preferred URL. Best when the duplicate shouldn't exist at all.
  2. `rel="canonical"` — a link tag in the page's <head> naming the preferred URL. Best when duplicates must remain accessible (for example, URLs with booking parameters).
  3. Sitemap inclusion — listing only preferred URLs in your sitemap is a weaker signal.

These signals work best when they all point the same way.

Example

On every version of your deluxe room page, include:

<link rel="canonical" href="https://www.yourhotel.com/rooms/deluxe-sea-view" />

The preferred page itself should also include this self-referencing canonical.

What about language versions?

Translated pages are not duplicates. Each language version should canonicalize to itself and use hreflang annotations listing all language versions. See multilingual SEO for hotels.

Common mistakes

  • Every page canonicalizing to the homepage.
  • Canonical tags pointing to URLs that redirect or return errors.
  • Using robots.txt to hide duplicates (Google advises against this for canonicalization).
  • Canonical tags that disagree with internal links and the sitemap.
  • Language versions all canonicalizing to the English page.

Checklist

  • Every indexable page has a self-referencing canonical
  • Parameter URLs canonicalize to the clean URL
  • HTTP/HTTPS and www variants redirect to one version
  • Canonical targets return 200, not redirects
  • Sitemap lists only canonical URLs
  • Internal links point to canonical URLs
  • Language versions self-canonicalize and use hreflang

Sources

  1. How to specify a canonical URL with rel="canonical" and other methods — Google Search Central
  2. Site moves and migrations — Google Search Central
  3. Tell Google about localized versions of your page — Google Search Central