Questions tagged [canonical]
The canonical tag has no usage guidance.
49
questions
0
votes
2
answers
63
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 ...
0
votes
0
answers
239
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 ...
0
votes
1
answer
67
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 ...
0
votes
1
answer
37
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
...
1
vote
2
answers
636
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 ...
0
votes
1
answer
552
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/...
0
votes
1
answer
21
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? ...
5
votes
1
answer
384
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/...
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() ...
0
votes
1
answer
201
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 ...
1
vote
1
answer
959
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]_[...
1
vote
0
answers
404
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 ...
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 ...
2
votes
2
answers
799
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/...
3
votes
0
answers
448
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(),
'...
2
votes
1
answer
203
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
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?
2
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 ...
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 ...
0
votes
1
answer
801
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=...
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 ...
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?
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 ...
1
vote
0
answers
27
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?
0
votes
1
answer
209
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
1
answer
402
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/...
3
votes
2
answers
2k
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 ...
1
vote
0
answers
463
views
Magento 2 : How To Remove Canonical Link on Page
How to remove canonical link on page (using xml)?
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 ...
1
vote
0
answers
485
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
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?
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 ...
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 ...
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 ...
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 ...
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 ...
1
vote
0
answers
72
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
...
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 ...
1
vote
1
answer
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
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 ...
1
vote
2
answers
1k
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.
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 ...
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 ...
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/...
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 ...
1
vote
1
answer
323
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
1
answer
890
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
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 ...
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 ...