We’re rewarding the question askers & reputations are being recalculated! Read more.

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
29
votes
2answers
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 ...
20
votes
5answers
865 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-...
14
votes
1answer
4k 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 ...
13
votes
1answer
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 ...
13
votes
1answer
9k 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://...
11
votes
3answers
8k views

Should URL paths be case sensitive?

My website's URLs are currently case-insensitive. For example, both of the following links show the exact same page: http://example.com/about http://example.com/About However, taking a look at the ...
9
votes
3answers
18k 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 ...
9
votes
3answers
4k 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 ...
8
votes
3answers
563 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 ...
8
votes
2answers
625 views

Canonical'd pages on subdomain showing up in Google search results

You might have heard that we launched Facebook Stack Overflow yesterday. As part of this, we modified our code to put <meta rel="canonical" ... tags on every question and user on the facebook....
8
votes
3answers
823 views

How to avoid getting negative points from Google AdSense

I have a news based website in which the primary contents includes news, image albums and videos. Out of these I have copyrights for the images and the videos are embedded from YouTube. My site is ...
8
votes
2answers
243 views

When the canonical page itself changes URL

This is a continuation of the question: How to handle canonical URL changes like Stack Overflow. Say I have the canon URL: questions/11/car <---canonically-linked-from--- questions/11/ What ...
7
votes
2answers
4k 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="...
7
votes
2answers
2k 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 ...
7
votes
2answers
6k 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 ...
7
votes
2answers
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 ...
7
votes
1answer
147 views

Letting search engines know that different links to identical pages stress different parts of the page

When you follow a permalink to a chat message in the Stack Exchange chat, you get a view of the transcript page for the day that contains the particular message. This message is highlighted in yellow, ...
7
votes
2answers
1k views

Is it ok for a canonical link to point to itself?

I've got the canonical: <link href="http://www.Site.com/Blog/how-to-know-when-this" rel="canonical" /> Is it ok if this is on the page it is pointing to? Also I'm putting it on all these ...
6
votes
2answers
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 ...
6
votes
3answers
316 views

Should a canonical URL be search engine friendly?

I'm using Drupal with search engine friendly URLs. The way Drupal works is that there's two ways to reference a node with SEF URLS switched on: The SEF way, eg. http://example.com/blog/the-answer-to-...
6
votes
2answers
905 views

'canonical' link type on paginated pages?

I noticed that Stack Overflow uses a rel=canonical attribute on page 2+ of answers. For example, see https://stackoverflow.com/questions/6470651/creating-a-memory-leak-with-java?page=2&tab=votes#...
6
votes
1answer
4k 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 ...
6
votes
3answers
1k views

How to handle different images size and URL with SEO

I'm creating my own CMS, and I have to handle images with differentes sizes. I store all my image's information in a database. For every image, I have: a filename (with extension) a title an alt ...
6
votes
2answers
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,...
5
votes
3answers
2k views

Should an ID go at the beginning or end of the URL for SEO? [duplicate]

Says I have a link, which contains the ID = 19963307 Type 1 : http://stackoverflow.com/questions/19963307/how-to-install-asp-net-mvc-5-on-a-server Type 2 : http://stackoverflow.com/questions/how-...
5
votes
1answer
2k views

Is it valid to have 2, 3, or more canonical tags?

I have seen a major website have more than 2 canonical tags on certain pages. Here's the page URL: http://www.example.com/en_GB/shop/details.cfm?R=PRODUCT23:en_GB Here's the first canonical tag, ...
5
votes
2answers
482 views

SEO and duplicate content for default document

SEO experts sometimes demand that default document, e.g. www.site.com/index.html redirects with 301 to www.site.com, so: Is that really necessary? Does Google really penalize that?
5
votes
1answer
256 views

Republishing blog posts on a popular website

I started my blog about programming yesterday and in order to promote and increase traffic I submitted my rss to Codeproject which pulls my posts and publishes them at Codeproject. While it increases ...
5
votes
1answer
95 views

When an attribute value ends in a slash, can I omit the quotes? It looks confusing when the trailing slash is next to the closing angle bracket

I have been thinking about this case: You want to use canonical on page A directing to example.com/: <link rel=canonical href=example.com/> If I wouldn't use quotation marks like that, could ...
5
votes
3answers
879 views

Should I use nofollow on internal links that don't need to be crawled?

We have a product navigation engine that allow our customers to filter products based on attributes (size, color, etc.). We are implementing an upgrade that allows them to use "multi-select" ...
5
votes
1answer
314 views

Is it necessary to add a canonical tag for a static site switching from HTTP to HTTPS if there is already a 301 Redirect?

We have a static site that has thousands of HTML pages and are planning to switch to HTTPS in the next few days. As the site is fairly new, we do not have any problems with duplicate content at the ...
5
votes
1answer
88 views

Wrong URL Requested But I know what they meant - 404 vs canonical vs 301 redirect

I'm using mod_rewrite to process variables in the URL. For many of my URLs the final portion of the string doesn't matter because I'm not using it. For instance: /review/company-25/jb-hunt I'm only ...
5
votes
2answers
162 views

Does a plain vanilla site benefit from a “canonical” directive?

So I thought I knew what "canonical" was for. As I understood it (and to be fair, most of the examples on the web) it avoids search engines seeing foo.htm and foo.htm?parameter=1 as duplicate ...
5
votes
3answers
4k views

Multiple URL's going to same page - Kosher for Google?

I hear conflicting answers from people about this, and I'm a developer by trade, and my SEO knowledge is not what it should be. Here's my situation: I run a website that lists hotels, restaurants, ...
5
votes
1answer
1k views

Correct syntax for Canonical - link or meta tag?

I'm getting a little confused about adding canonical tags to pages. Some (most?) guides suggest using a link tag thusly: <link rel="canonical" href="www.example.com/somepage" /> but some ...
5
votes
1answer
269 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 ...
5
votes
1answer
125 views

Canonical Tag Not Being Recognized

I'm puzzled by the first Google search result in this list. The first result has the following rel="canonical" tag: <link rel="canonical" href="http://seatgeek.com/colorado-buffaloes-basketball-...
5
votes
1answer
149 views

Negative Canonical Attacks, do they work? how to recover? how to prevent?

Backstory... Today I received an email from the Google Search Console reporting a huge increase of 404 pages on my site. Upon investigating I found hundreds of sites linking to my pages that simply ...
5
votes
1answer
730 views

Canonical link element on single page app

I have a single-page app, i.e. page navigation and url changes happen with javascript, rather than full page loads. Additionally, occasionally multiple variants of a url point to the same underlying ...
5
votes
1answer
1k views

Case for and against different URLs for rel=“canonical” and og:url meta tags

I am trying to decide whether it is a good idea to use different URLs for the rel="canonical" and open graphs og:url links in the following use case: A pretty standard product page: https://www....
5
votes
1answer
181 views

How to transfer link authority but keep url?

I have this old site (let's call it oldsite.com), with excellent branding and authority, that I however want to gradually move to a new domain (newsite.com), better suited for a future concept. ...
5
votes
1answer
241 views

Should mobile webpages have hreflang links to non-mobile pages?

My site has multilingual links, which are specified like this on non-mobile pages: <link rel="alternate" hreflang="en" href="http://mydomain.com/page" /> <link rel="alternate" hreflang="jp"...
5
votes
2answers
175 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)"&...
4
votes
2answers
3k views

Do query string case differences affect whether a URL is Canonical?

If I have two URL's where the only difference is the case of the query string: http://example.com?param=TEST http://example.com?param=test Are they both considered equal by search engines? I know ...
4
votes
1answer
1k views

URLs with “space”, “%20”, “+” are canonicals?

If I have a URL encoded and another does not, e.g. <a href="http://example.com/images/foo abc.jpg">Image</a> <a href="http://example.com/images/foo+abc.jpg">Image</a> <a ...
4
votes
4answers
339 views

How to use the canonical tag for multiregion websites and duplicate content

We want to use the canonical tag for an multiple region website with the same content. For Example: www.example.com/services.htm www.example.com/uk/services.htm Then if we use the canonical tag on ...
4
votes
3answers
264 views

Google ranking - difference between example.com and example.com/?ref=id

Does it impact a site's Google ranking if I link to the site with a "referrer" query-string? e.g: example.com/?ref=mysite instead of example.com ?
4
votes
2answers
406 views

Is “site:” returning pages that would not otherwise be returned?

Today I attempted a search on one of my websites as I thought I had a page about this or that and used the following in my search: site:m2osw.com upload I started looking through the results and ...
4
votes
2answers
344 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 ...
4
votes
1answer
227 views

Preventing URLs ending in “/” from search engine indexes with robots.txt or rewrite rule

Is there a programmatic way to easily deal with the issue of search engines considering pages where the page works with and without the trailing slash duplicates like via a robots.txt or Nginx rewrite ...