php - Magento 1.9.0.1: 404 error with $product->getProductUrl after entering a new product -
i have existing magento project , has strange problem:
after entering new product in magento backend, url_key direct link not work. example: created new product called "some testarticle". field url_key in backend filled "some-testarticle". when try calling www.domain.com/some-testarticle.html 404 error. on category page link specific product looks this:
www.domain.com/catalog/product/view/id/12345/s/some-testarticle.html
only after while (don't know how long takes or needs happen), short link work , domain.com/some-testarticle.html work.
do guys know is? there magento cronjob works magic or how , when short urls generated?
thanks in advance!
it might need reindex after adding new products,
- catalog url rewrites
- category products
this can done in admin panel,
system -> index management
or command line in /magento_root/shell
php indexer.php --reindex catalog_url php indexer.php --reindex catalog_category_product
Comments
Post a Comment