How to remove magento parent category path from sub category url

How to remove parent category path from sub category url? Instance: http://www.eye4eyeglasses.com/eyeglasses/cheap-eyeglasses I just want the category c url is http://www.eye4eyeglasses.com/cheap-eyeglasses Edit /app/code/core/Mage/Catalog/Model/Url.php Find around line 632 and change: //if (null === $parentPath) { //$parentPath = $this->getResource()->getCategoryParentPath($category); //} //elseif ($parentPath… Read moreHow to remove magento parent category path from sub category url