All posts tagged: format seo url in magento

How To Format SEO URL With Slashes in Magento?

No comments

TASK: Adding slashes into SEO URL in Magento From: https://www.example.com/products?p=1&attributes=value To: https://www.example.com/products/p/1/attributes/value SOLUTIONS: You can override the getUrl() method in the class Mage_Catalog_Model_Layer_Filter_Item, path /app/code/core/Mage/Catalog/Model/Layer/Filter/Item.php Then, locate the function at the line 57, it will look like this: public function getUrl() { $query = array( $this->getFilter()->getRequestVar()=>$this->getValue(), Mage::getBlockSingleton(‘page/html_pager’)->getPageVarName() => null // exclude current page from urls); return

April LeeHow To Format SEO URL With Slashes in Magento?
read more