Opencart: Change page ID path -


i'm trying make site more seo friendly , i'm noticing whenever go product through either tag or different page (2,3,4 etc) adds url.

for example:

www.domain.com/guardian-survival-kit/culinary-can-of-preparedness-seeds.html?page=2 

i remove ?page=2 path

opencart 1.5.4

any appreciated.

you manually edit code each pre-product controller file (such search pages etc) or use this modification make of product url's consistent throughout installation. example, think page you're getting off in product search page, open /catalog/controller/product/search.php

find code

'href'        => $this->url->link('product/product', $url . '&product_id=' . $result['product_id']) 

and change to

'href'        => $this->url->link('product/product', 'product_id=' . $result['product_id']) 

then save. sure make backup file before attempting change. remove additional parameters url , have product url


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -