Canonical URL

What is a Canonical URL?

A canonical URL is the URL that Google sees as the “master” version of a set of duplicate or near-duplicate pages. Think of it as the difference between an original piece of art and its copies or prints. This canonical URL is what Google will index and potentially return to users in Google search.

Why are Canonical URLs Important?

Canonical URLs are important because Google will only index canonical URLs. This means that if you have duplicate content on your website, such as pages that are near or exact duplicates of each other, Google will only index one of them (the canonical).

If you set your canonical URLs properly, Google is likely to respect your decision and view that page as canonical. However, in the absence of a specified canonical for exact or near-duplicate pages, Google will use its best judgment to choose a canonical for you. This may not always be the URL you want Google to choose.

How to Set a Canonical URL

Google looks at several signals to determine the canonical URL for a set of duplicate or near-duplicate pages, one of which is the canonical tag. The canonical tag is a piece of HTML code that you add to the <head> section of a page to specify the canonical version of that page. It looks like this:

<link rel="canonical" href="https://example.com/canonical-page/" />

Example

Suppose you own an ecommerce store where visitors can filter products by parameters like style, size, and color. This typically results in parameterized URLs with virtually identical content to your “master page”:

  • yourstore.com/tshirts (master page listing all T-shirts)
  • yourstore.com/tshirts?size=small (identical to the master page but filtered for small T-shirts only)
  • yourstore.com/tshirts?color=red (identical to the master page but filtered for red T-shirts only)

Without proper canonicalization, you may end up in a situation where Google chooses to index the wrong version of the page or all of them. To ensure Google indexes the correct page, you can set the canonical version of these URLs by using a canonical tag on the master page, pointing to the master version without the URL parameters.

Best Practices for Canonical URLs

1. Use Self-Referencing Canonical Tags

Self-referencing canonical tags are canonical tags on a page that point to itself. For example:

<link rel="canonical" href="/blog/what-is-a-canonical-url/" />

Using self-referential canonical tags is recommended by Google’s John Mueller, as it clarifies which page you want to have indexed.

2. Use Absolute URLs

Absolute URLs contain all the information necessary to locate a resource and help avoid unintentional mistakes or misinterpretations of canonical URLs by search engines. Although relative URLs can be used, it is best SEO practice to use absolute URLs in canonical tags.

3. Exclude Non-Canonical URLs from Your Sitemap

Google advises against listing non-canonical URLs in your sitemap because it sees these URLs as suggested canonicals. To check for non-canonical URLs in your sitemap, you can use tools like Ranktracker's Web Audit.

4. Don’t Set 404s as Canonical URLs

A 404 status code indicates that a page cannot be found. You should avoid specifying a 404 page as canonical. Over time, pages may be removed or relocated, so it’s important to monitor and update canonical tags to ensure they point to live pages.

FAQs

Should I Canonicalize Paginated Pages to the Root Page?

For paginated pages, such as a series of blog archive pages, each page should use self-referencing canonical tags rather than pointing to the first page in the series. This is the correct way to handle canonicalization with pagination, as confirmed by Google’s John Mueller.

Is it Okay to Have Multiple Canonical Tags?

No, having multiple canonical tags on the same page is not good practice. Google is likely to ignore both canonical tags if this occurs, and the page may not be indexed.

For more insights on managing duplicate content and improving your website’s SEO, visit the Ranktracker Blog and explore our comprehensive SEO Guide. Additionally, familiarize yourself with key SEO terms and concepts in our SEO Glossary.

SEO for Local Business

People don't search for local businesses in the Yellow Pages anymore. They use Google. Learn how to get more business from organic search with our SEO guides for local businesses.
SEO for Abdominoplasty (Tummy Tuck) Services
SEO for Accounting Firms
SEO for Aesthetic Surgeons
SEO for Amusement Parks
SEO for Antique Shops
SEO for Appliance Stores
SEO for Arcades
SEO for Architectural Firms
SEO for Art Classes
SEO for Artisan Coffee Roasters
SEO for Auto Body Shops
SEO for Auto Parts Stores
SEO for Auto Repair Shops
SEO for Automotive Businesses
SEO for Bail Bonds Services
SEO for Bakeries
SEO for Banks
SEO for Barbershops
SEO for BBQ Joints
SEO for Board Game Cafes
SEO for Bookstores
SEO for Botox and Fillers Services
SEO for Boutiques
SEO for Bowling Alleys
SEO for Bread Bakeries
SEO for Breast Augmentation Services
SEO for Breweries
SEO for Buffet Restaurants
SEO for Burger Trucks
SEO for Burn Surgeons
SEO for Cafes
SEO for Cake Shops
SEO for Car Dealerships
SEO for Car Washes
SEO for Carpet & Flooring Stores
SEO for Casual Dining Restaurants
SEO for Cat Cafes
SEO for Chemical Peel Services
SEO for Chiropractors
SEO for Cleaning Services
SEO for Clothing Stores
SEO for Coffee Shops
SEO for Consulting Firms
SEO for Cosmetic Surgeons
SEO for Craniofacial Surgeons
SEO for Credit Unions
SEO for Cupcake Shops
SEO for Currency Exchange Services
SEO for Dance Studios
SEO for Daycare Centers
SEO for Debt Counseling Services
SEO for Delis
SEO for Dental Clinics
SEO for Dermabrasion Services
SEO for Detail Shops
SEO for Diners
SEO for Donut Shops
SEO for Dry Cleaners
SEO for Education and Childcare Services
SEO for Electricians
SEO for Electronics Stores
SEO for Endodontists
SEO for Engineering Firms
SEO for Entertainment & Recreation
SEO for Escape Rooms
EO for Ethnic Restaurants
SEO for Facelift Services
SEO for Family Restaurants
SEO for Farm-to-Table Restaurants
SEO for Fast Food Restaurants
SEO for Financial Planners
SEO for Financial Services
SEO for Fine Dining Restaurants
SEO for Florists
SEO for Food Courts
SEO for Food Trucks
SEO for French Patisseries
SEO for Frozen Yogurt Stores
SEO for Furniture Stores
SEO for Fusion Cuisine Trucks
SEO for Gelato Shops
SEO for General Dentists (DDS or DMD)
SEO for Gluten-Free Bakeries
SEO for Gourmet Food Trucks
SEO for Gyms
SEO for Hair Salons
SEO for Hand Surgeons
SEO for Handyman Services
SEO for Health & Wellness Stores
SEO for Home & Garden Businesses
SEO for Home Improvement Stores
SEO for Ice Cream Parlors
SEO for Ice Cream Sandwich Shops
SEO for Ice Cream Trucks
SEO for Insurance Agencies
SEO for Interior Design Studios
SEO for Internet Cafes
SEO for Investment Firms
SEO for IT Support Services
SEO for Juice Bars
SEO for Landscapers
SEO for Language Schools
SEO for Laser Treatment Services
SEO for Law Firms
SEO for Learning Centers
SEO for Legal Aid Clinics
SEO for Liposuction Services
SEO for Marketing Agencies
SEO for Martial Arts Studio
SEO for Massage Therapists
SEO for Mental Health Counselors
SEO for Microsurgeons
SEO for Mini Golf Courses
SEO for Mortgage Brokers
SEO for Motorcycle Dealers
SEO for Movie Theaters
SEO for Nail Salons
SEO for Non-Invasive Fat Reduction Services
SEO for Notary Services
SEO for Nurseries & Garden Centers
SEO for Nutritionists
SEO for Oil Change Services
SEO for Optical Stores
SEO for Oral and Maxillofacial Surgeons
SEO for Oral Pathologists
SEO for Oral Radiologists
SEO for Orthodontists
SEO for Paintball Arenas
SEO for Pastry Shops
SEO for Pediatric Dentists
SEO for Public Health Dentists
SEO for Orthodontists
SEO for Pest Control Services
SEO for Pet Stores
SEO for Pharmacies
SEO for Physical Therapists
SEO for Pizzerias
SEO for Plumbers
SEO for Pool & Spa Services
SEO for Preschools
SEO for Professional Services
SEO for Prosthodontists
SEO for Pediatric Dentists
SEO for Real Estate Agencies
SEO for Reconstructive Surgeons
SEO for Restaurants
SEO for Retail Stores
SEO for Rhinoplasty Services
SEO for Roofing Companies
SEO for RV Dealers
SEO for Seafood Restaurants
SEO for Service-Based Businesses
SEO for Soft Serve Ice Cream Shops
SEO for Sorbet Shops
SEO for Specialty Food Stores
SEO for Specialty Food Trucks
SEO for Sporting Goods Stores
SEO for Sports Centers
SEO for Steakhouses
SEO for Street Food Vendors
SEO for Summer Camps
SEO for Sushi Bars
SEO for Swimming Pools
SEO for Taco Trucks
SEO for Tailors
SEO for Tapas Bars
SEO for Tax Advisors
SEO for Tea Houses
SEO for Tire Shops
SEO for Towing Services
SEO for Toy Stores
SEO for Tutoring Centers
SEO for Vegetarian/Vegan Restaurants
SEO for Window & Door Installers
SEO for Wineries
SEO for Yoga Studios

Start using Ranktracker for free!

Find out what’s holding your website back from ranking
Get a free account