Questions tagged [canonical-link]

is a keyword for the HTML attribute `rel` which allows specification of the preferred URL for web pages with duplicate content.

canonical is a HTML rel keyword to prevent duplicate content issues by specifying the preferred ("canonical") version of a web page URL. It is supported by Google, Yahoo, Bing and other search engines. It is described in RFC 6596.

408 questions
4
votes
1 answer

Is it possible with canonical URL for this pattern in htaccess: /a/*/id/uniqueid?

A big problem is that I am not a programmer….! So I need to solve this with means within my own competence… I would be very happy for help! I have an issue with a lot of duplicated URLs in the Google index and there are strong signs that it is…
3
votes
1 answer

Make the Facebook crawler ignore the Canonical link

I wonder if there is a way to make the Facebook crawler ignore the canonical link on a page. I have a situation where the canonical link points to a different URL than the one that you are actually on. This results in that the og:image, og:url etc.…
3
votes
2 answers

Wrong canonical URL in Facebook cache?

I have a like button on this page: http://magazin.skiinfo.de/kaestle This morning, I made a mistake and put in a wrong canonical URL. I deleted the canonical URL from the page, but the like…
3
votes
1 answer

WordPress: Overwrite the canonical URL in YoastSEO

I'm using a snippet to overwrite the canonical URL in YoastSEO for WordPress/WooCommerce. The snippet is based on the official docs example: https://developer.yoast.com/features/seo-tags/canonical-urls/api/ Here's my code: function…
Cray
  • 5,307
  • 11
  • 70
  • 166
3
votes
0 answers

Alternate page with proper canonical tag and duplicate URL part errors in Google search console report

I have a static blog site created with Nuxt and hosted on Netlify. For content, I am using markdown files and the new Content module in Nuxt. I used Nuxt and static content, along with vue-meta for SEO purposes, but after a couple months, my…
wonder95
  • 3,825
  • 8
  • 45
  • 74
3
votes
1 answer

The canonical link points to the site root error

I have a website that uses country-specific pages. So for every page, there is a country-specific URL. For example: example.com/au/blog, example.com/us/blog, example.com/uk/blog. This is great as we can show content more relevant to each…
Charklewis
  • 4,427
  • 4
  • 31
  • 69
3
votes
1 answer

How to redirect the route with some id to human friendly url and handle canonical url in angular routes?

I have two url format example.com/posts/:postId and example.com/posts/:postId/:postTitle just like stack-overflow individual question url. In angular route I need to redirect all the urls with :postId to :postId/:PostTitle or directly loading the…
Mr X
  • 1,637
  • 3
  • 29
  • 55
3
votes
1 answer

Duplicate without user-selected canonical

We have a live website with URL e.g. abc.com but when the site fully loads, it gets redirected to abc.com/home. I indexed all the pages to google search console, under coverage it says, Duplicate without user-selected canonical and the page is not…
Apurva
  • 181
  • 2
  • 2
  • 8
3
votes
4 answers

How to make Canonicals with PHP

I've search around on SO, but can't find an exact answer to my needs. Generating a URL is pretty easy... Like so: But, the issue with this is, the…
MattHodson
  • 736
  • 7
  • 22
3
votes
2 answers

Domain root and index.html seen differently by search engines

I'm having difficulty fixing this problem: I ran an SEO test (on sitechecker.pro) on my portfolio, and it gave me this problem that I can't figure how to fix: Search engines see your http://gvdavidtran.com and http://gvdavidtran.com/index.html…
davidtran
  • 31
  • 4
3
votes
0 answers

Is it possible to detect :visited URL with canonical URL?

As title, I'm thinking of is it possible to tell browser that after user visited a page with URL https://example.com/somepath?q=somequery and with a canonical URL tag , then this link
Trantor Liu
  • 8,770
  • 8
  • 44
  • 64
3
votes
2 answers

How to get/read the cleanest url into Meta Canonical via PHP?

Given: old ugly urls like /somepage?ln=en are rewritten in htaccess to /en/somepage Given: used canonical meta tag, with this php script above it to fill in the tidy url: How to make them like the canonical?
Sam
  • 15,254
  • 25
  • 90
  • 145
3
votes
2 answers

Wordpress Redirecting Non Category Pages /page/nnn to their Canonical URLs

I seemingly to have a strange issue I have found in almost every other Wordpress site. Suppose, you have set your Blog home to a static WP page /myhome. And you have a separate page for blog /blog. Now, this works fine and should…
shamittomar
  • 46,210
  • 12
  • 74
  • 78
3
votes
1 answer

Magento Multistore Canonical Tag

I got a short question for you. Magento already have a canonical tool for products and categories. But how does this work with multi stores? Example: I have 3 domains. http://domainname1.at http://domainname2.de http://domainname3.ch All of them…
Lando
  • 31
  • 2
3
votes
0 answers

Heroku App + Custom Domain - Specify Canonical Domain

I have a Rails app on Heroku that I've set up with a custom domain. I noticed that in Google search results, the herokuapp link appears instead of the custom domain. I'd like the custom domain to be the default that appears in search results. I…
scientiffic
  • 9,045
  • 18
  • 76
  • 149