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):


Second output, total valid friendly url like:


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


This issue is created due to indexing.


  • 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

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.