1

I have the problem with category URL rewrites.

$category1 = Mage::getModel('catalog/category')->load(2495);
$category2 = Mage::getModel('catalog/category')->load(5966);

First output (not valid friendly url):

http://www.my-website.com/catalog/category/view/s/category-name/id/2495/

Second output, total valid friendly url like:

http://www.my-website.com/category-name

I would also like to mention that these categories has the same value in catalog_category_entity_url_key. Might it be the problem? I executed URL redirects reindex and cleared cache. Do you have any ideas for this?

1 Answer 1

0

This issue is created due to indexing.

Solution:

  • reindex magento using ssh so that indexing will do properly
  • Save category from backend so that magento,call indexing for this particular category.
  • Check magento log ,if there have any issue during indexing and fix them
2

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.