Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [canonical]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
5 views

MultiWebsite Canonical Tag - Scope Website/WebStore

Magento lacks the feature to make one website canonical over another one. Actually, we have got three websites: https://foodentyco.it which is our default website https://foodentyco.it/local which is ...
Foodentyco's user avatar
0 votes
2 answers
92 views

Override the canonical URL in custom layout handler

I'm attempting to override the canonical URL for a custom handler. I tried adding the following code via XML, but instead of overriding the default canonical URL, I now have both the default and the ...
Anass Hl's user avatar
0 votes
0 answers
262 views

How to remove canonical tag from product page in magento 2

I want to remove default canonical link only from product page. I have set the values to "No" in backend configuration. see https://prnt.sc/JAUrcfGsDUai Still the canonical link is visible ...
Nicola Smith's user avatar
0 votes
1 answer
79 views

M2.3.5.1-p1 Add canonical tag to Advanced Search page

I have a problem where my SEO tool finds /catalogsearch/advanced as no canonical link. I tried doing this link, which is basically the same question, but It wouldn't work for me, even after ...
Simon's user avatar
  • 1
0 votes
1 answer
42 views

Add or edit product not load when canonical enable

I installed the SEO module on the localhost and when it enters the products I can not edit or add the products I noticed that activating Canonical in mageworx does not load the full screen ...
P00ZHAN .'s user avatar
1 vote
2 answers
741 views

Insert custom canonical value on category page in Magento 2

I've created a module to add a custom category attribute (custom canonical URL) to a category page, based on Display custom canonical URL on category page in Magento 2 question. Here is the contents ...
mcpacific's user avatar
0 votes
1 answer
644 views

M2: How to add a canonical tag on the login page

These links are getting indexed: https://store.com/customer/account/login/referer/aHR0cHM6Ly9zdG9yZS5zbWFydGRlc2tzLmNvbS90ZXJtcy1jb25kaXRpb25z/ https://store.com/customer/account/login/referer/...
user2813308004's user avatar
0 votes
1 answer
22 views

Is changing to canonical urls a bad idea if you have an established website with thousands of backlinks?

I have a magento website with thousands of backlinks. I just realized that the categorical structure is negatively affecting my seo. Will switching to canonical break many backlinks? Is it a bad idea? ...
Chris Chung's user avatar
5 votes
1 answer
447 views

Magento 2 Canonical url for home cms page

As per SEO expert I need to have domain url as canonicalurl. As per magento 2 settings doesnt allow it to be empty. attached screenshot shows same. I get https://www.portablerestroomtrailers.com/...
Amol Bhandari SJ's user avatar
1 vote
1 answer
2k views

Display custom canonical URL on category page in Magento 2

I've created a module to add a custom category attribute (custom canonical URL) to a category page. The attribute displays in the admin and I can save the value. I've extended _prepareLayout() ...
user3417608's user avatar
0 votes
1 answer
231 views

Magento 1.9 How can i add the category name and category id in the canonical url

In magento 1.9 I am trying to get the canonical URL for the category In the view source, I am getting as <link rel="canonical" href="https://domain/categoy" /> I wanted to ...
user12398926's user avatar
1 vote
1 answer
1k views

Magento 2.3.5 how to add canonical links for cms pages having slash at the end of url-key

I am using magento 2.3.5p1 community edition. I want to add canonical links in cms pages. As in 2.3.5 magento we have to create a separate layout update file as cms_page_view_selectable_[cms-url-key]_[...
chanchal's user avatar
  • 417
1 vote
0 answers
427 views

Magento 2.3.2 LayoutXML Update remove canonical

Under Stores > Configuration > Catalog > Catalog, We have "Use Canonical Link Meta Tag For Categories" set to "Yes" There are a couple of category pages that we want to edit the Canonical Link for. I ...
meweb432344's user avatar
1 vote
0 answers
28 views

Custom Canonical Tag in Magento 2 Category with Magework seosuite

I try to show custom canonical for category with Magework seosuite, but this function I think that not is possible. Is there a way to do this, maybe with an extension or plugin of this module ? Thank ...
Mrrobot's user avatar
  • 11
2 votes
2 answers
882 views

Include category path in product urls in sitemap and canonical urls

I am using magento-2.3 EE. I want to include category path in product url, in sitemap urls and same should be in their canonical urls. Like in sitemap, product urls should be like - site.com/...
chanchal's user avatar
  • 417
3 votes
0 answers
463 views

How to change the canonical function for category page in Magento 2?

How to add custom url Using canonical function Code: if ($this->_categoryHelper->canUseCanonicalTag()) { $this->pageConfig->addRemotePageAsset( $category->getUrl(), '...
Unknown's user avatar
  • 581
2 votes
1 answer
212 views

How to set product urls to no-index no-follow?

How we can set the list of products urls to **no-index no-follow** those products are canonical
Magento Dev's user avatar
  • 1,264
2 votes
1 answer
2k views

What is the SEO Recommended canonical category of products? [closed]

Have a question, what is the SEO Recommended in Magento 2.2.5 canonical category of products?
Express Projects's user avatar
3 votes
2 answers
5k views

Magento 2 Override Product Canonical Url

How would you override the product canonical url in Magento 2? Scenario: We have a group products which cannot be configurable's (client request) so we've created 4 simples and connected them via ...
Paul Donnelly's user avatar
3 votes
1 answer
2k views

How to remove default generated canonical tag in category page?

In Catalog > Categories > [my category] > Design > Layout Update XML, I put my own canonical link. However, when I inspected the HTML, I noticed there were two canonical tags. One of them ...
Mingle Li's user avatar
  • 265
0 votes
1 answer
817 views

Magento2: Can we add current URL in "Scripts and Style Sheets"?

I want to add Dynamic URL in Admin->Content->Design->Configuration->HTML Head->Scripts and Style Sheets? Actually, I want to add canonical tag throughout the website. Here is the code: <link rel=...
Ravi Soni's user avatar
  • 1,809
1 vote
1 answer
265 views

How to get secure url canonical in magento

In the Magento backend, under System -> Configuration -> Catalog -> Catalog -> Search Engine Optimizations It adds category and product pages to the canonical url automatically, however the url is ...
Matheus Portela's user avatar
5 votes
4 answers
9k views

How to add canonical tag for all cms pages magento 2?

I want to add canonical tag for all cms pages. Currently canonical tag enabled for category and product page. How to do this?
Vinod Kumar's user avatar
  • 2,065
1 vote
1 answer
4k views

Magento 2 Changing Canonical URL of Product page

I have a configurable product consisting of simple product. The URL is something like http://www.domain.com/catalog/product/view/id/92196/s/my-simple-product/ I want to change this to have the ...
Sharat Hegde's user avatar
1 vote
0 answers
28 views

Turn system URLs into canonical URLs

I've inherited a site that was M1 and using system URLs. I have migrated the product data over to an M2 installation. Is there a way now to convert those system URLs to canonical URLs?
Matthew McLennan's user avatar
0 votes
1 answer
216 views

M2 Add canonical tag to Advanced Search page

In my theme I have a folder Magento_AdvancedSearch. How can I add a canonical tag to this page via XML? Edit: I have made a file catalogsearch_index_index.xml with the code <?xml version="1.0"?&...
bondimedical's user avatar
0 votes
1 answer
405 views

Best practice for fixing multiple URL's for same product issue in Magento1?

This Magento1 website has 5 different URL's for each product that are indexing in Google. Examples below: www.url.com/category1/product-name.html www.url.com/brands/product-name.html www.url.com/...
MagentoMac's user avatar
  • 1,042
3 votes
2 answers
3k views

How to use noindex, follow on duplicate pages for search engines

I can easily set NO INDEX, FOLLOW on particular page through layout update. But what I want is, I need to set NO INDEX, FOLLOW when the page loads after filtering from layered navigation on product ...
sagar sapkota's user avatar
1 vote
0 answers
471 views

Magento 2 : How To Remove Canonical Link on Page

How to remove canonical link on page (using xml)?
Александр Жарский's user avatar
1 vote
1 answer
2k views

Change magento url structure for better Google index

I have website with url structure like below http://example.com/appliances.html/?cat=12 http://example.com/appliances.html/?cat=12&mfg=123 Where cat id and manufacturer id are inner categories ...
Rahul's user avatar
  • 199
1 vote
0 answers
497 views

Magento 2 - Self referring canonical for custom page

How do i add a self referring canonical to a custom page layout manufacturerers_index_index ? The above wont work because the url could be one of many i.e. the layout is inherited by multiple ...
Sophie Baxter's user avatar
1 vote
0 answers
1k views

Remove trailing slash in canonical url for Magento home page

For some reason my canonical url for the home page has a trailing slash. Why has Magento added this and how can I remove it?
Nathan's user avatar
  • 225
0 votes
0 answers
62 views

Magento - Canonicals are not set

I changed the settings in my Magento store to use Canonical URLs: System > Configuration > Catalog > Search Engine Optimizations. Then I selected Yes for Use Canonical Link Meta Tag For ...
Torben's user avatar
  • 231
1 vote
2 answers
2k views

How to add canonical tag for product pages as domainname.com/category/subcategory/product.html

Canonical tag for product pages of (eleczo). I need solution how to add a canonical tag for product pages as domainname.com/category/subcategory/product.html in MAGENTO 1.9.1.1. Because, the same ...
Irfan Pasha I's user avatar
7 votes
2 answers
5k views

Magento 2: Is it possible to add a canonical link to a page through it's layout file?

I have a custom page and I'm trying to add a canonical link to it. I see that in the layout file I can specify meta data in the head node. Is it possible to add the canonical link in the layout as ...
Andre Nickatina's user avatar
3 votes
2 answers
3k views

How to make canonical full/path/with/category/product-url?

Question again. Sorry, cant find the answer :( Magento 1.9. I have several same pages: 1) domain/category/subcategory/product-page 2) domain/category/product-age 3) domain/product-page When I use ...
Philipp Klemeshov's user avatar
4 votes
2 answers
2k views

SITEMAP.XML contains non-canonical links

XML Sitemap contains a lot of non-canonical URLs in Magento 2.0.2. It's not good practice from SEO perspective and and worth fixing. Here is my config: Use Categories Path for Product URLs is set ...
EvgenyR's user avatar
  • 41
1 vote
0 answers
74 views

Move from Opencart to Magento - Category url structure not matching

When moving from Opencart to Magento I have encountered a big issue. Open cart shop has this structure: example.com/barnvagnar/bugaboo/bugaboo-buffalo example.com/barnvagnar/bugaboo-buffalo ...
Kaah's user avatar
  • 111
0 votes
1 answer
51 views

New url and server for a Magento web application

I use same magento application and database (like copy and paste) on another server(eg. a development server). It seens like a succeed implementing to the new server, but possibly because I have ...
hln's user avatar
  • 125
1 vote
1 answer
2k views

How to prevent duplicate content issues caused by index.php in urls?

I've been trying to prevent our homepage from displaying as both www.domain.co.uk & www.domain.co.uk/index.php but now i've realised that every other page displays with /index.php in the url. ...
David Smith's user avatar
1 vote
1 answer
1k views

Canonical Product URL with category path not showing

My webshop is not displaying the canonical product url's with the category path. I have "Use category path for Product URL's" enabled in the backend but it doesn't seem to work. Would anybody have ...
BasR's user avatar
  • 43
1 vote
2 answers
2k views

Canonical URLs for Categories?

I´m new to Magento but how can I set my canonical tags for my products, so that Product A can be in 4 categories but still link to one at the end. And I don´t have duplicate content.
Direeeect's user avatar
2 votes
1 answer
2k views

Magento url rewrite issues - all pages without www redirect to homepage

Every page without w w w redirects to the homepage. Pages work normally with the w w w & the homepage redirects from non w w w to w w w. (I want w w w only on the website) I have tried changing ...
karl's user avatar
  • 21
2 votes
1 answer
1k views

Canonical Duplicate Links

I really don't know a huge amount about duplicate links. I am told that www.example.com/greenshoe and www.example.com/shoes/greenshoe are duplicate pages and need adjusting. I have added the ...
user3217495's user avatar
3 votes
1 answer
2k views

Custom canonical tags

I am trying to override Magento's addLinkRel method to set custom canonical tags: I want my shop's canonical tags to point to the main shop's pages. So I created code/local/Fkoessler/MyProduct/etc/...
fkoessler's user avatar
  • 195
0 votes
2 answers
2k views

Replace canonical URLs in product pages

I am trying to manually set the canonical URL on product pages. To do so, I extended the Mage_Catalog_Block_Product_View class and modified the _prepareLayout method: class ...
fkoessler's user avatar
  • 195
1 vote
1 answer
333 views

Add page number to canonical url for categories on 1.9.0.1

When I go to pages like www.my-shop.de/my-cat/page/2/ canonical url meta-tag is www.my-shop.de/my-cat/. I would like to have the meta-tag www.my-shop.de/my-cat/page/2/. Wasnt able to find the right ...
Stefan Gregori's user avatar
1 vote
1 answer
904 views

How to add a canonical tag on the login page

Whats the best way to add a canonical tag to the login page? Would I be best to add something to the head via the layout.xml
Goose84's user avatar
  • 2,611
0 votes
1 answer
1k views

Duplicate content due to multiple categories per product

On my website, there is a category special offers. The way I fill this category is by just assigning the product to both, the standard category and the special offers one. Of course this leads to ...
Yorrd's user avatar
  • 828
0 votes
3 answers
636 views

ALT Tag from SEO prespective

I am currently working on an ecommerce website; the website is built in Magento. The website has tons of configurable products with associated simple products. For each simple product, we have ...
Nabeel M's user avatar