Page 1 of 1

[SOLVED]How to change product canonial URL

Posted: Wed Sep 12, 2012 12:38 am
by haowind
Hi guys,

I have tried to change the product's breadcrumbs to Home>>category>>sub-category>>product-name.
Meanwhile, I want to set the canonial URL to mysite.com/cat/sub-cat/product-name-111,
not like the OC default mysite.com/product-name-111.

I fout that I can go to a category or product page through many URLs.
e.g.
mysite.com/cat1/cat2/iphone this page can be reached through:
mysite.com/cat2/iphone and mysite.com/iphone.

It should not work like this... If i set a product name as iphone, this will sure cause conflict problem on URL.

I think all canonial URL should be set to mysite.com/cat1/cat2/product, and breadcrumb set to home>>cat1>>cat2>>product-name. NOT mysite.com/xxx because this link is not default display for category products.

If I do seo backlink building for product page, which URL should I use???
mysite.com/cat1/cat2/product-name OR mysite.com/product-name ???

This is a big problem.
Can anyone help?

I solved it myself. Change the 1 line to 2 line of catalog/controller/product/product.php.
And there is another guy has post to change the featured products' breadcrumb. It think its perfect now.
---change this---
$this->document->addLink($this->url->link('product/product', 'product_id=' . $this->request->get['product_id']), 'canonical');

---to- this--
$this->document->addLink($this->url->link('product/product',$url . '&product_id=' . $this->request->get['product_id']), 'canonical');

Re: [SOLVED]How to change product canonial URL

Posted: Fri Sep 14, 2012 6:57 pm
by Axansh
Hi,

We have developed an extension for SEO - to make it easy for seller.

This module helps you with optimizing the url's of all your website pages , categories , products , manufacturers , information pages .

you can also optimize the titles , meta tag keywords , meta tag descriptions of all the links , categories , products , manufacturers , information pages .

If you add new links or catalog data - they can be optimised as well .

All optimizations can be done for multiple languages .

Image names can also be optimized .

For fast results , less data entry - you can use auto generate facility .