Questions tagged [canonical-url]

For webpages which may duplicate some or all of their content with other pages (for legitimate reasons), the canonical URL is the URL of the page which search engines should link to. This tag is used for canonical 301 redirects and other methods. See the [rel-canonical] tag for more information on rel="canonical".

Filter by
Sorted by
Tagged with
16 votes
1 answer
5k views

Canonical URL for a home page and trailing slashes

My home page could be potentially linked as: http://example.com http://example.com/ http://example.com/?ref=1 http://example.com/index.html http://example.com/index.html?ref=2 (the same page is ...
user avatar
  • 2,323
3 votes
3 answers
1k views

HTTP to HTTPS: Wait for new sitemap to be indexed?

Running HTTP and HTTPS versions of the site side-by-side. HTTP is canonical right now. Goal is to change that to HTTPS. Created a new site in Search Console and submitted a new sitemap 4 days ago. ...
user avatar
31 votes
2 answers
1k views

How to use rel='canonical' properly

I have 3 URLS that serve the same data: www.example.com/product/foo www.example.com/product/foo?id=1 www.example.com?product=foo For Google's sake I want the URL www.example.com/product/foo to be ...
user avatar
  • 12.7k
8 votes
3 answers
671 views

Why treat these as URLs with different path capitalization and trailing slash as different?

These are all strictly different urls: http://www.example.com/page http://www.example.com/pAge http://www.example.com/page/ http://www.example.com/paGE/ I get that it conforms to the strict ISO ...
user avatar
  • 2,370
25 votes
5 answers
1k views

How to correctly mark up different versions of the same document which are non-canonical

The use case is a document which has multiple versions which are all simultaneously available. For example, documentation on a product for each version of that software: /v1/install-guide /v2/install-...
user avatar
7 votes
3 answers
5k views

Does www and non-www suffer duplicate content penalty?

Do you know if I should use <link rel="canonical" tag, or 301 redirect from: http://example.com to http://www.example.com ...to avoid a duplicate content penalty in case other pages link to the ...
user avatar
  • 203
7 votes
2 answers
1k views

Does the "canonical name" in DNS make any difference to search engines?

Some of our sites are setup with an "a record" to an IP address and some are setup as a cname of a server that then has an "a name" to the same server IP. I want it to be consistent. Which is the ...
user avatar
  • 171
3 votes
1 answer
398 views

Does Rel=Canonical Pass PR from Links or Just Fix Dup Content

One of the issues with duplicate content is that links can be split across several versions of your page, it was my understanding the a 301 redirect is really the only option for retaining some of the ...
user avatar
  • 4,262
1 vote
1 answer
447 views

Google is counting the domain home page ("/") as a duplicate of "/index.html"

For only my index pages, I am receiving this warning in Google Search Console: Duplicate, submitted URL not selected as canonical I know that this occurs because Google is attempting to track both ...
user avatar
  • 113
14 votes
1 answer
10k views

How does Google treat hash fragment inside a canonical URL

I have seen many websites using slugs in their URL to boost SEO such as this: http://example.com/article/1543/how-to-boost-seo/ I was thinking if I could do something like this instead: http://...
user avatar
6 votes
2 answers
2k views

Pagination, Duplicate Content, and SEO

Please consider a list of items (forum comments, articles, shoes, doesn't matter) which are spread over multiple pages. Different sort orders are supported (by date, by popularity, by price, etc). So,...
user avatar
14 votes
3 answers
36k views

What is the solution for "Submitted URL not selected as canonical" in Google Search Console beta?

Google's new webmaster tools has a section 'Index coverage'>'Excluded'>'Submitted URL not selected as canonical'. I am getting 3 internal links in the section "Submitted URL not selected as ...
user avatar
  • 141
9 votes
1 answer
7k views

Should query strings be included or removed from the canonical tag?

Should I remove the entire query string from URLs in the canonical meta tag? For example this URL: https://example.com/Turkey/Istanbul/Vehicles/Car/Peugeot?b=11&d=2 This b=11 returns a list of ...
user avatar
  • 237
4 votes
1 answer
2k views

I used rel="canonical" and hreflang="x-default", but global site is missing and receiving "no return tags" error

Here is a sample of the code <link rel="canonical " href="http://www.kaspersky.com/anti-virus-trial" hreflang="en" /> <link rel="alternate" href="http://usa.kaspersky.com/downloads/free-home-...
user avatar
  • 43
5 votes
2 answers
204 views

Can I declare a duplicate page via javascript for google?

Most sources of documentation state that one can declare a webpage a duplicate of another by applying this tag on the duplicate page: <link rel="canonical" href="(absolute URL to original page)"&...
user avatar
3 votes
2 answers
250 views

Canonical URLs in sortable paginated lists

How should one use rel="canonical" in sortable paginated lists? An unsorted list of products is not the same as the same list sorted, nor are lists sorted in different ways equivalent. For example, ...
user avatar
  • 195
3 votes
1 answer
158 views

How to construct the URL for search with multiple input?

I am having a home page where I can search on multiple tags. How should I construct the URL? Suppose I search for tag = test_1 and tag = test_2 Should I construct the url like http://www.example....
user avatar
2 votes
1 answer
447 views

2 URLs pointing to one website with a unique canonical URL

I have 2 domains submitted to Google that both point to my WordPress site. I am using Yoast SEO plugin to take care of the basic SEO metadata for the website. When I view the source for each URL I ...
user avatar
2 votes
2 answers
3k views

How to avoid hreflang return errors with URL that contain parameters

I'm getting HREF no return errors in search console and I don't understand why. We have a page that contains buttons for get multiple pages of results. URL structure: Base page: `https://example....
user avatar
1 vote
1 answer
1k views

Google selecting wrong canonical

This page addresses the question of duplicate content, but does not describe what I'm facing. After first encountering the Google "canonical algorithm bug" 2 months ago, I've made only a little ...
user avatar
14 votes
1 answer
2k views

How to handle canonical url changes like Stack Overflow

Stack Overflow sites all have pretty urls which include the question title. In the HTML it also have canonical url for that page. I just found out that when I change the question title, the url is ...
user avatar
  • 718
9 votes
3 answers
6k views

Why is Google indexing pages with ?utm_campaign query string

Recently I have noticed that Google is indexing URLs containing utm_campaign, utm_source and utm_medium query string arguments. In the results, Google shows URLs with these query strings rather than ...
user avatar
  • 569
6 votes
2 answers
2k views

Does URL encoding create duplicate content?

An SEO expert was testing my site, and noticed that my URLs contained the special character :. He said that would create duplicate content, because google would interpret any url containing : as two ...
user avatar
  • 163
7 votes
2 answers
12k views

Multi language site - use of canonical link and link rel="alternate"

I keep reading everywhere that if you have a multilanguage site, where the same page appears in, say, French and English, then this is considered as duplicate content by google. It is written that ...
user avatar
  • 71
3 votes
2 answers
2k views

How do I correctly add index page to xml sitemap - do I need a canonical expression?

When I create an xml sitemap using an online sitemap creator, it adds the following <url> <loc>http://www.mysite.co.uk/</loc> <lastmod>2017-09-26T18:03:59+00:00</...
user avatar
  • 33
9 votes
2 answers
6k views

Should I add a trailing slash to my canonical link or not?

I'm just working through some PHP to set up a canonical link for each page on one of my websites and I'm wondering what's the correct link for the home page: Is it: <link rel="canonical" href="...
user avatar
  • 449
8 votes
1 answer
5k views

What is a best canonical URL for a search result page? [closed]

I have read a Google guideline About rel="canonical" and I have known that A canonical page is the preferred version of a set of pages with highly similar content. I have a search page which URL ...
user avatar
  • 369
4 votes
2 answers
2k views

How to correctly remove MULTIPLE parameters from the Google index using htaccess and canonical / noindex?

I found a similar question with a great answer for removing a single URL parameter. However, what if I have 20+ URL parameters that I don't want indexed? Also, in the example solution below, it is ...
user avatar
4 votes
1 answer
4k views

Canonicalization for www/non-www URLs and IP/domain on a Windows server

I have checked my website using this SEO tool and the results report 2 issues: Test your site for potential URL canonicalization issues. Canonicalization describes how a site can use slightly ...
user avatar
4 votes
1 answer
321 views

Canonical tag for untranslated content on a multilingual site

We have a multilingual site where some pages have not been translated yet. However, our CMS already serves them under their language-specific URL, for example: https://example.com/email-inbox/ and ...
user avatar
  • 143
4 votes
1 answer
5k views

Clean URLs without PHP file extension

I want to make my URLs clean, for example: http://sample.com/about-me instead of: http://sample.com/about-me.php This is my code: RewriteEngine On RewriteBase / RewriteCond %{...
user avatar
3 votes
2 answers
268 views

Is there a way I can redirect search engine traffic by U.S. State or Zip Code?

I work for an e-commerce company that operates solely within the United States. However, the price of goods and availability of our products depends on what State or even Zip Code you reside in (we ...
user avatar
  • 33
2 votes
1 answer
3k views

SEO - does Google read dynamic canonical tags? [duplicate]

I used the following code to redirect all the HTTP pages of a site to the https:// version. <link rel="canonical" href=""> <script> var url = window.location.href; // get current URL ...
user avatar
  • 121
0 votes
2 answers
2k views

Avoid SEO loss after URL structure change

We recently re-wrote our site from Umbraco to WordPress. This has been done by third-party developers. I have been the project manager and it is my mistake that I haven't notice the change of URLs ...
user avatar
  • 249
5 votes
1 answer
293 views

Should I use a canonical tag when only 50% of the content is duplicated?

I have a city guide website covering bars, restaurants and clubs. Each of these venues have their own subpage on my website like: example.com/steersons-steak-house-darling-harbour-sydney/ For all ...
user avatar
  • 213
4 votes
2 answers
320 views

Is it 100% safe to add NOINDEX tag to any duplicate/copy content issues?

Usually I can simply copy and paste content from any blogs to the my blog, and add a no index tag to avoid any duplicate/copy content issues. I have copied above part from popular blog. I need to ...
user avatar
4 votes
1 answer
151 views

SEO - Canonical Tags and, 301 and Product Variations

My website has undergone many changes over the past 10 years, as I guess most have, rankings have dropped and over the past few months I have been working on the site and CMS a lot to improve it, but ...
user avatar
4 votes
2 answers
1k views

How to specify the canonical URL for downloadable versions of the page (doc, pdf, txt, etc)

I've spent much time searching about the situation I'm in, before I post this question. I have a poetry page (working for it currently) and I want users to be able to download poem in PDF, DOC, and ...
user avatar
  • 160
3 votes
2 answers
652 views

4 URLs lead to the same page content, are 301 redirects better or setting rel canonical better?

All the following pages have the same exact content: http://www.example.com/seo-url (rel canonical URL) http://www.example.com/ID1234 http://www.example.com/content/ID1234 http://www.example.com/...
user avatar
  • 639
3 votes
2 answers
2k views

Change web folders names with uppercase to lowercase or not?

I have web directories with upper case letters and site is on Apache server. Example: www.example.com/ServiceTools/page.htm I have read that using upper case letters in folder name is bad practice ...
user avatar
3 votes
0 answers
100 views

Another site not owned by us chosen for the Google-selected canonical

One of our sites is affected by negative SEO. In our Google Search Console, we notice that Google has chosen a different domain as the canonical URL. We don't own that domain. How it got there is ...
user avatar
3 votes
1 answer
162 views

Flag my website as a single page application?

Is it possible to flag my website as a SPA? The reason I want to do this is because on Google Search Console I see my links indexed without canonical links, but if I try for a live version the ...
user avatar
3 votes
2 answers
160 views

Website opening both on domain name and IP. Is that a problem?

So, http://example.com/ and http://192.0.2.32/ both are displaying a web page. From SEO point there is content duplication issue when both domain and IP displays the same content. This can be solved ...
user avatar
  • 1,619
3 votes
2 answers
268 views

What should I use for a canonical URL for a search page that has a few search options?

I read this post here: What is a best canonical URL for a search result page? and I have search page which can set more than one item like this: example.com/search/index.php?keywords=...
user avatar
3 votes
3 answers
298 views

When to use canonical? Prepaid products of different values

I have a webshop for different kind of prepaid cards. Every kind of prepaid card is also available in a different value. The product page of those different values differ only in a title (...
user avatar
  • 176
3 votes
2 answers
862 views

Serving images on CDN; allow crawl of origin or CDN or both?

I have searched and read through a lot of questions regarding this subject, but cannot seem to find anyone that directly addresses my problem. I have a CDN for all my static images img.domain.net, it'...
user avatar
3 votes
2 answers
6k views

Duplicate, submitted URL not selected as canonical after changing domain

I've recently changed the domain from https://example.me to https://example.im. However, https://example.im is not being displayed on Google. After inspecting it in the Search Console, this is what I ...
user avatar
2 votes
1 answer
57 views

Do rel canonical tags permanently affect link juice, or can they be undone later?

Does placing the rel=canonical tag pass the link juice to the canonicalised page forever? What I'm trying to say is, if one were to canonicalise page b to page a, would then reverting that change (for ...
user avatar
2 votes
1 answer
36 views

Is it ok to have Desktop URL as canonical when Googlebot is crawling as Smartphone?

Google in search console has clearly stated that it is indexing as a smartphone. Our redirection logic, look at user-agent and redirects all mobile traffic to mobile URL. However, in our mobile site's ...
user avatar
  • 211
2 votes
2 answers
679 views

https:// redirect to https://www in NGINX

How do you redirect all non-www links to my website to https://www. I know that there are a lot of solutions for .htaccess but I haven't been able to find anything sufficient for nginx. At the ...
user avatar
  • 55