Questions tagged [canonical]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
6
votes
2answers
3k 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 ...
3
votes
1answer
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/...
3
votes
2answers
1k 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 ...
2
votes
1answer
477 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 ...
2
votes
2answers
817 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 ...
2
votes
2answers
2k 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 ...
2
votes
1answer
49 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
2
votes
1answer
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 ...
2
votes
0answers
56 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(), '...
1
vote
2answers
2k 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?
1
vote
2answers
689 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.
1
vote
1answer
1k 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 ...
1
vote
1answer
1k 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 ...
1
vote
1answer
295 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?
1
vote
1answer
777 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 ...
1
vote
1answer
171 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 ...
1
vote
0answers
19 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?
1
vote
0answers
319 views

Magento 2 : How To Remove Canonical Link on Page

How to remove canonical link on page (using xml)?
1
vote
0answers
375 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 ...
1
vote
0answers
659 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?
1
vote
1answer
1k 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 ...
1
vote
0answers
62 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 ...
1
vote
1answer
1k 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. ...
1
vote
1answer
242 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 ...
1
vote
1answer
550 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
0
votes
3answers
615 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 ...
0
votes
2answers
1k 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 ...
0
votes
1answer
147 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=...
0
votes
1answer
108 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/...
0
votes
1answer
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 ...
0
votes
0answers
11 views

How to add a canonical tag on mangenot 2.2.6 for entire website through backend or through coding

How to add a canonical tag on mangenot 2.2.6 for entire website through backend or through coding when I Audit my website with MOZ Pro software its showing MISSIN Canonical Tag for 864 pages,However ...
0
votes
1answer
29 views

Custom Canonical Tag in Magento 2 Category

I am using Mageworx extension for canonical tags, but want to add a custom canonical tag/url in a category, and remove the canonical url generated by the extension. I am using Magento 2.2.5. I used ...
0
votes
0answers
307 views

Add canonical link to CMS page | Trailing slash added after URL

I have a problem with my CMS page. I found out that the page is available under two versions: www.mydomain.co.uk/MyCMSpage www.mydomain.co.uk/MyCMSpage/ I am not sure why the trailing slash ...
0
votes
1answer
130 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"?&...
0
votes
0answers
57 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 ...
0
votes
2answers
833 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 ...
0
votes
1answer
47 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 ...
0
votes
1answer
811 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 ...